promise rejection
This commit is contained in:
parent
db57e5b331
commit
d0b3b28a6c
1 changed files with 1 additions and 0 deletions
1
index.js
1
index.js
|
@ -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);
|
Loading…
Reference in a new issue