mirror of
https://github.com/danbulant/discord.js
synced 2026-07-07 20:20:55 +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;
|
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)
|
if (found)
|
||||||
resolve(found);
|
resolve(found);
|
||||||
else
|
else
|
||||||
reject();
|
reject(new Error("not found anything"));
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue