From 0469abd4a9c9270a1fdc962969e36e63699af8b4 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 10 Dec 2017 21:51:33 +0100 Subject: upgrade dependencies --- node_modules/node-fetch/lib/fetch-error.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'node_modules/node-fetch/lib/fetch-error.js') diff --git a/node_modules/node-fetch/lib/fetch-error.js b/node_modules/node-fetch/lib/fetch-error.js index 7cabfb3ce..a48eb828c 100644 --- a/node_modules/node-fetch/lib/fetch-error.js +++ b/node_modules/node-fetch/lib/fetch-error.js @@ -17,9 +17,6 @@ module.exports = FetchError; */ function FetchError(message, type, systemError) { - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); - this.name = this.constructor.name; this.message = message; this.type = type; @@ -29,6 +26,8 @@ function FetchError(message, type, systemError) { this.code = this.errno = systemError.code; } + // hide custom error implementation details from end-users + Error.captureStackTrace(this, this.constructor); } require('util').inherits(FetchError, Error); -- cgit v1.2.3