mirror of
https://github.com/CompeyDev/fxtwitter-docker.git
synced 2025-04-05 10:30:55 +01:00
Don't let onError fail if no sentry
This commit is contained in:
parent
b70ad420c3
commit
d509965a3d
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ app.use('*', async (c, next) => {
|
|||
});
|
||||
|
||||
app.onError((err, c) => {
|
||||
c.get('sentry').captureException(err);
|
||||
c.get('sentry')?.captureException?.(err);
|
||||
console.error(err.stack);
|
||||
c.status(200);
|
||||
c.header('cache-control', noCache);
|
||||
|
|
Loading…
Add table
Reference in a new issue