mirror of
https://github.com/danbulant/discord.js
synced 2026-05-24 20:42:27 +00:00
Add more detail to error message
This commit is contained in:
parent
8e7cb7fc4e
commit
769ea5b50f
1 changed files with 1 additions and 1 deletions
|
|
@ -251,7 +251,7 @@ class ClientDataResolver {
|
|||
req.end((err, res) => {
|
||||
if (err) return reject(err);
|
||||
if (this.client.browser) return resolve(convertArrayBuffer(res.xhr.response));
|
||||
if (!(res.body instanceof Buffer)) return reject(new TypeError('Body is not a Buffer'));
|
||||
if (!(res.body instanceof Buffer)) return reject(new TypeError('The response body isn\'t a Buffer.'));
|
||||
return resolve(res.body);
|
||||
});
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue