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
commit fb7686f860
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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