mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-18 09:35:50 +00:00
Cherry-picked: Reject only with Error instead of Object or String Fixes #132
This commit is contained in:
parent
6d30457722
commit
62723d85f0
2 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ class Core extends EventEmitter {
|
|||
|
||||
let abortCall = null;
|
||||
this.abortedPromise = new Promise((resolve,reject) => {
|
||||
abortCall = () => reject("Query is finished -- cancelling outstanding promises");
|
||||
abortCall = () => reject(new Error("Query is finished -- cancelling outstanding promises"));
|
||||
});
|
||||
|
||||
// Make sure that if this promise isn't attached to, it doesn't throw a unhandled promise rejection
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue