diff --git a/api/src/main.ts b/api/src/main.ts index c6be3147..1f30cb70 100644 --- a/api/src/main.ts +++ b/api/src/main.ts @@ -85,7 +85,7 @@ async function bootstrap() { } process.on('uncaughtException', (error) => { - if (error.stack.toLowerCase().includes('smtp')) + if (error.stack?.toLowerCase().includes('smtp')) app.get(LoggerService).error('SMTP error', error.stack); else throw error; });