From 1f3a6a466dadac456853e8900bd9cf6304ed4a19 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Wed, 31 Jul 2024 13:53:52 +0800 Subject: [PATCH] follow #109 - removed remnants of error handler added by #18 Signed-off-by: Lam Wei Li --- lib/httpErrors.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/httpErrors.js b/lib/httpErrors.js index b419a31..da953d2 100644 --- a/lib/httpErrors.js +++ b/lib/httpErrors.js @@ -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) {