From 14110596985b6ed00dfa67a65606d4f6a5ca2813 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 13 May 2022 13:31:43 -0400 Subject: [PATCH] feat: fix typo, show route in deprecation notice for third-param removal in `setupPageRoute` --- src/routes/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/helpers.js b/src/routes/helpers.js index cea52ee050..62eec31f07 100644 --- a/src/routes/helpers.js +++ b/src/routes/helpers.js @@ -12,7 +12,7 @@ helpers.setupPageRoute = function (...args) { const controller = args[args.length - 1]; if (args.length === 5) { - winston.warn('[helpers.setupPageRotue] passing middleware as third param is deprecated'); + winston.warn(`[helpers.setupPageRoute(${name})] passing \`middleware\` as the third param is deprecated, it can now be safely removed`); } middlewares = [