Skip to content

Commit 6c71a31

Browse files
committed
fix: error logging for unhandled exceptions
1 parent 94bc722 commit 6c71a31

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ const app = new Elysia()
3434
set.status = 401;
3535
return { status: 401, message: error.message };
3636
default:
37+
console.error(error);
3738
return { status: 500, message: error.message };
3839
}
3940
})

0 commit comments

Comments
 (0)