mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00:00
fix(HTTPError): the path property should actually be the path
This commit is contained in:
parent
6b9dd13d43
commit
ead99a53b7
1 changed files with 2 additions and 2 deletions
|
|
@ -153,7 +153,7 @@ class RequestHandler {
|
||||||
// Retry the specified number of times for possible serverside issues
|
// Retry the specified number of times for possible serverside issues
|
||||||
if (item.retries === this.manager.client.options.retryLimit) {
|
if (item.retries === this.manager.client.options.retryLimit) {
|
||||||
return reject(
|
return reject(
|
||||||
new HTTPError(res.statusText, res.constructor.name, res.status, item.request.method, request.route)
|
new HTTPError(res.statusText, res.constructor.name, res.status, item.request.method, request.path)
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
item.retries++;
|
item.retries++;
|
||||||
|
|
@ -170,7 +170,7 @@ class RequestHandler {
|
||||||
return null;
|
return null;
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
return reject(
|
return reject(
|
||||||
new HTTPError(err.message, err.constructor.name, err.status, request.method, request.route)
|
new HTTPError(err.message, err.constructor.name, err.status, request.method, request.path)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue