From a73e0d1d8081aed09a1c99a52c91cb2f2a9026b3 Mon Sep 17 00:00:00 2001 From: Timo Hocker Date: Wed, 11 Dec 2019 13:10:45 +0100 Subject: [PATCH] logging in case method was not found --- index.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.js b/index.js index 09233cf..9604745 100644 --- a/index.js +++ b/index.js @@ -54,6 +54,11 @@ module.exports = function ( case 'all': app.all(url, func); break; + default: + if (verbose) { + console.warn(`'${method}' did not match any request method, ignoring`); + } + break; } } };