Skip to content

Commit

Permalink
follow #109 - removed remnants of error handler added by #18 (#164)
Browse files Browse the repository at this point in the history
Signed-off-by: Lam Wei Li <lam_wei_li@hotmail.com>
  • Loading branch information
lamweili committed Sep 2, 2024
1 parent ab25cf9 commit 822ae7a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/httpErrors.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,10 +134,7 @@ const httpErrors = {
},

internalServerError: function internalServerError (message) {
const error = new createError.InternalServerError(message)
// mark error as explicit to allow custom message
error.explicitInternalServerError = true
return error
return new createError.InternalServerError(message)
},

notImplemented: function notImplemented (message) {
Expand Down

0 comments on commit 822ae7a

Please sign in to comment.