mirror of
https://github.com/hexastack/hexabot
synced 2025-02-24 05:14:47 +00:00
fix: main.ts
This commit is contained in:
parent
5218325426
commit
ccfa79cbe3
@ -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;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user