mirror of
https://github.com/danbulant/discord.js
synced 2026-06-20 23:21:04 +00:00
Fixed resolver rejection for callbacks
potentially could cause some code to crash if using callbacks instead of promises
This commit is contained in:
parent
c74b5dbd3f
commit
d70f66abfd
2 changed files with 2 additions and 2 deletions
|
|
@ -191,7 +191,7 @@ var Resolver = (function () {
|
|||
return;
|
||||
}
|
||||
}
|
||||
if (found) resolve(found);else reject();
|
||||
if (found) resolve(found);else reject(new Error("not found anything"));
|
||||
});
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -163,7 +163,7 @@ class Resolver {
|
|||
if (found)
|
||||
resolve(found);
|
||||
else
|
||||
reject();
|
||||
reject(new Error("not found anything"));
|
||||
});
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue