mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-18 20:43:30 +01:00
Fixed resolver rejection for callbacks
potentially could cause some code to crash if using callbacks instead of promises
This commit is contained in:
@@ -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"));
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user