mirror of
https://github.com/Nezumi-2711/next-gdrive-index.git
synced 2026-09-22 13:38:38 +00:00
Add: Checkpoint console log
This commit is contained in:
@@ -25,6 +25,7 @@ export default function Error({
|
||||
|
||||
useEffect(() => {
|
||||
if (error.message.includes("{")) {
|
||||
console.log("CHECKPOINT ERROR MESSAGE IS JSON");
|
||||
const errorObj = JSON.parse(
|
||||
error.message,
|
||||
) as ExtendedError;
|
||||
@@ -35,6 +36,7 @@ export default function Error({
|
||||
errorObj.category || "internalServerError",
|
||||
errorObj.reason || "Internal Server Error",
|
||||
);
|
||||
console.log("CHECKPOINT EXTENDED ERROR", extendError);
|
||||
setExtendedError(extendError);
|
||||
|
||||
const path =
|
||||
|
||||
Reference in New Issue
Block a user