promise rejection

This commit is contained in:
Loic Bersier 2018-09-20 17:46:08 +02:00
parent db57e5b331
commit d0b3b28a6c

View file

@ -88,5 +88,6 @@ client.registry
}); });
client.on('error', console.error); client.on('error', console.error);
process.on('unhandledRejection', error => console.error('Uncaught Promise Rejection', error));
client.login(token); client.login(token);