Skip to content

Commit

Permalink
fix: small type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Snazzah committed Apr 17, 2024
1 parent 262aaf5 commit 51c215e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/bot/src/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ process.on('unhandledRejection', (r) => {
});

process.on('uncaughtException', (e) => {
client.emit('logger', 'error', 'sys', ['Uncaught exception:', e, ...('errors' in e ? (e.errors as Error[]) : [])]);
client.emit('logger', 'error', 'sys', ['Uncaught exception:', e, ...('errors' in e ? ((e as any).errors as Error[]) : [])]);
});

export async function connect() {
Expand Down

0 comments on commit 51c215e

Please sign in to comment.