mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-16 19:43:29 +01:00
fix(RequestHandler): pass HTTPError pass path instead of route as path
This commit is contained in:
@@ -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)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user