Skip to content

Commit 3ed8952

Browse files
committed
log error to console
1 parent d956a87 commit 3ed8952

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/nextjs/src/utils/withSentry.ts

+2
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ export const withSentry = (origHandler: NextApiHandler): WrappedNextApiHandler =
7979
try {
8080
return await origHandler(req, res); // Call original handler
8181
} catch (e) {
82+
console.error(e);
83+
8284
if (currentScope) {
8385
currentScope.addEventProcessor(event => {
8486
addExceptionMechanism(event, {

0 commit comments

Comments
 (0)