Skip to content

Commit 0a7c9f1

Browse files
committed
update errorHandler
1 parent f878ae2 commit 0a7c9f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/utils/errorHandler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export const errorHandler = ({ error, functionName, message, req, res }) => {
1616
reqQueryParams,
1717
reqBody: req?.body,
1818
},
19-
error,
19+
error: JSON.stringify(error, Object.getOwnPropertyNames(error)),
2020
}),
2121
);
2222
}

0 commit comments

Comments
 (0)