fix: catch missing role errors (closes #518)

This commit is contained in:
Isaac
2024-03-03 20:10:45 +00:00
parent f4ff01398e
commit c09972f3cf
8 changed files with 104 additions and 157 deletions

View File

@@ -76,7 +76,7 @@ process.on('uncaughtException', (error, origin) => {
log.error(error);
});
process.on('warning', warning => log.warn(warning.stack));
process.on('warning', warning => log.warn(warning.stack || warning));
const client = new Client(config, log);
client.login().then(() => {