diff --git a/lib/errors/authenticationerror.js b/lib/errors/authenticationerror.js index 2b1da147..5d6ab091 100644 --- a/lib/errors/authenticationerror.js +++ b/lib/errors/authenticationerror.js @@ -6,7 +6,7 @@ */ function AuthenticationError(message, status) { Error.call(this); - Error.captureStackTrace(this, arguments.callee); + Error.captureStackTrace(this, AuthenticationError); this.name = 'AuthenticationError'; this.message = message; this.status = status || 401;