From ead99a53b7c1838fa2061d22f7ee07a3612bfb3f Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Sun, 2 Sep 2018 14:57:36 +0200 Subject: [PATCH] fix(HTTPError): the path property should actually be the path --- src/rest/RequestHandler.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rest/RequestHandler.js b/src/rest/RequestHandler.js index 99595b4b1..3f66fd438 100644 --- a/src/rest/RequestHandler.js +++ b/src/rest/RequestHandler.js @@ -153,7 +153,7 @@ class RequestHandler { // Retry the specified number of times for possible serverside issues if (item.retries === this.manager.client.options.retryLimit) { 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 { item.retries++; @@ -170,7 +170,7 @@ class RequestHandler { return null; } catch (err) { 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) ); } }