Add: Checkpoint console log

This commit is contained in:
mbaharip
2023-05-28 01:22:44 +07:00
parent d746993770
commit db8d632665
+2
View File
@@ -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 =