diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-12-10 21:51:33 +0100 |
commit | 0469abd4a9c9270a1fdc962969e36e63699af8b4 (patch) | |
tree | f9864d4a4148621378958794cbbfdc2393733283 /node_modules/node-fetch/lib/fetch-error.js | |
parent | 6947e79bbc258f7bc96af424ddb71a511f0c15a3 (diff) |
upgrade dependencies
Diffstat (limited to 'node_modules/node-fetch/lib/fetch-error.js')
-rw-r--r-- | node_modules/node-fetch/lib/fetch-error.js | 5 |
1 files changed, 2 insertions, 3 deletions
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); |