Loading lib/errors.js +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ function RequestError(cause) { this.message = String(cause); this.cause = cause; if (Error.captureStackTrace) { if (Error.captureStackTrace) { // if required for non-V8 envs - see PR #40 Error.captureStackTrace(this); } Loading @@ -22,7 +22,7 @@ function StatusCodeError(statusCode, message) { this.statusCode = statusCode; this.message = statusCode + ' - ' + message; if (Error.captureStackTrace) { if (Error.captureStackTrace) { // if required for non-V8 envs - see PR #40 Error.captureStackTrace(this); } Loading Loading
lib/errors.js +2 −2 Original line number Diff line number Diff line Loading @@ -7,7 +7,7 @@ function RequestError(cause) { this.message = String(cause); this.cause = cause; if (Error.captureStackTrace) { if (Error.captureStackTrace) { // if required for non-V8 envs - see PR #40 Error.captureStackTrace(this); } Loading @@ -22,7 +22,7 @@ function StatusCodeError(statusCode, message) { this.statusCode = statusCode; this.message = statusCode + ' - ' + message; if (Error.captureStackTrace) { if (Error.captureStackTrace) { // if required for non-V8 envs - see PR #40 Error.captureStackTrace(this); } Loading