fix: main.ts

This commit is contained in:
abdou6666 2025-01-06 10:15:05 +01:00
parent 5218325426
commit ccfa79cbe3

View File

@ -85,7 +85,7 @@ async function bootstrap() {
} }
process.on('uncaughtException', (error) => { process.on('uncaughtException', (error) => {
if (error.stack.toLowerCase().includes('smtp')) if (error.stack && error.stack.toLowerCase().includes('smtp'))
app.get(LoggerService).error('SMTP error', error.stack); app.get(LoggerService).error('SMTP error', error.stack);
else throw error; else throw error;
}); });