Log message for unhandled promise rejection when string is thrown
This commit is contained in:
parent
13c4bbebfa
commit
b4a9858f37
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@
|
|||
return;
|
||||
}
|
||||
|
||||
self.debug('Possibly unhandled rejection:\n\n' + e.message);
|
||||
self.debug('Possibly unhandled rejection:\n\n' + (e.message || e));
|
||||
throw e;
|
||||
});
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue