From 822ae7a895e7e8296429ea38e2cf4060aaf19144 Mon Sep 17 00:00:00 2001 From: Lam Wei Li Date: Mon, 2 Sep 2024 15:57:56 +0800 Subject: [PATCH] follow #109 - removed remnants of error handler added by #18 (#164) 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) {