Skip to content

Commit

Permalink
Merge pull request #522 from Hexastack/fix/main-ts
Browse files Browse the repository at this point in the history
fix: main.ts
  • Loading branch information
marrouchi authored Jan 6, 2025
2 parents c3518d0 + f9b2d44 commit fb7686f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
Expand Down

0 comments on commit fb7686f

Please sign in to comment.