Skip to content

Commit

Permalink
follow #109 - removed remnants of error handler added by #18
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 authored Jul 31, 2024
1 parent 4b885e0 commit 1f3a6a4
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 1f3a6a4

Please sign in to comment.