From 089f65fd2acb284fa741f4faf302ec34660026b6 Mon Sep 17 00:00:00 2001 From: SpaceEEC Date: Wed, 3 Apr 2019 22:45:51 +0200 Subject: [PATCH] fix(RequestHandler): pass HTTPError pass path instead of route as path --- src/rest/RequestHandler.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rest/RequestHandler.js b/src/rest/RequestHandler.js index 45065a662..4e10b5feb 100644 --- a/src/rest/RequestHandler.js +++ b/src/rest/RequestHandler.js @@ -103,7 +103,7 @@ class RequestHandler { // NodeFetch error expected for all "operational" errors, such as 500 status code this.busy = false; 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) ); }