mirror of
https://github.com/danbulant/discord.js
synced 2026-06-07 16:52:16 +00:00
fix(RequestHandler): pass HTTPError pass path instead of route as path
This commit is contained in:
parent
32a432f4a5
commit
089f65fd2a
1 changed files with 1 additions and 1 deletions
|
|
@ -103,7 +103,7 @@ class RequestHandler {
|
||||||
// NodeFetch error expected for all "operational" errors, such as 500 status code
|
// NodeFetch error expected for all "operational" errors, such as 500 status code
|
||||||
this.busy = false;
|
this.busy = false;
|
||||||
return reject(
|
return reject(
|
||||||
new HTTPError(error.message, error.constructor.name, error.status, request.method, request.route)
|
new HTTPError(error.message, error.constructor.name, error.status, request.method, request.path)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue