Merge pull request #522 from Hexastack/fix/main-ts

fix: main.ts
This commit is contained in:
Med Marrouchi
2025-01-06 17:28:00 +01:00
committed by GitHub

View File

@@ -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;
});