From db8d632665f6311ed8816c9124a69005694cc97d Mon Sep 17 00:00:00 2001 From: mbaharip <62494292+mbahArip@users.noreply.github.com> Date: Sun, 28 May 2023 01:22:44 +0700 Subject: [PATCH] Add: Checkpoint console log --- src/app/error.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/error.tsx b/src/app/error.tsx index 493c3fe..592c05b 100644 --- a/src/app/error.tsx +++ b/src/app/error.tsx @@ -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 =