mirror of
https://github.com/hexastack/hexabot
synced 2025-01-22 10:35:37 +00:00
fix: address comment
This commit is contained in:
parent
ccfa79cbe3
commit
f9b2d4495d
@ -85,7 +85,7 @@ async function bootstrap() {
|
||||
}
|
||||
|
||||
process.on('uncaughtException', (error) => {
|
||||
if (error.stack && error.stack.toLowerCase().includes('smtp'))
|
||||
if (error.stack?.toLowerCase().includes('smtp'))
|
||||
app.get(LoggerService).error('SMTP error', error.stack);
|
||||
else throw error;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user