fix pr0gag trigger
improve error handling
This commit is contained in:
@@ -34,7 +34,7 @@ export default async bot => {
|
||||
}
|
||||
catch(error) {
|
||||
e.reply("An error occured.");
|
||||
logger.error(`${e.network} -> ${e.channel} -> ${e.user.nick}: ${typeof error === "string" ? error : JSON.stringify(error)}`);
|
||||
logger.error(`${e.network} -> ${e.channel} -> ${e.user.nick}: ${error.toString ? error : JSON.stringify(error)}`);
|
||||
}
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user