feat: fix typo, show route in deprecation notice for third-param removal in setupPageRoute

This commit is contained in:
Julian Lam
2022-05-13 13:31:43 -04:00
parent f1bc9aa9f0
commit 1411059698

View File

@@ -12,7 +12,7 @@ helpers.setupPageRoute = function (...args) {
const controller = args[args.length - 1]; const controller = args[args.length - 1];
if (args.length === 5) { 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 = [ middlewares = [