This commit is contained in:
Flummi
2019-11-19 04:45:54 +01:00
parent 2988582905
commit e1b72f0f47
6 changed files with 63 additions and 4 deletions

View File

@@ -32,7 +32,7 @@ export default async bot => {
console.log(`triggered > ${t[0]}`);
}
catch(error) {
e.reply("An error occured.");
e.reply(`${t[0]}: An error occured.`);
logger.error(`${e.network} -> ${e.channel} -> ${e.user.nick}: ${error.toString ? error : JSON.stringify(error)}`);
}
});