Fix crash

- Fixing crashing on WebSocket error
pull/18/head
Trivernis 6 years ago
parent 37207265fc
commit 84b27b9f8a

@ -37,6 +37,10 @@ function main() {
}
})
});
// log the errors instead of letting the program crash
client.on('error', (err) => {
logger.error(err.message);
});
client.login(authToken).then(() => {
logger.debug("Logged in");
});

Loading…
Cancel
Save