@@ -80,7 +80,7 @@ Chain.prototype.add = function add(handler) {
80
80
handler . constructor . name ,
81
81
'AsyncFunction' ,
82
82
`Handler [${ handlerId } ] is missing a third argument (the ` +
83
- '"next" callback) but is not an async function. Middlware ' +
83
+ '"next" callback) but is not an async function. Middleware ' +
84
84
'handlers can be either async/await or callback-based.' +
85
85
'Callback-based (non-async) handlers should accept three ' +
86
86
'arguments: (req, res, next). Async handler functions should ' +
@@ -92,11 +92,11 @@ Chain.prototype.add = function add(handler) {
92
92
handler . constructor . name ,
93
93
'AsyncFunction' ,
94
94
`Handler [${ handlerId } ] accepts a third argument (the 'next" ` +
95
- 'callback) but is also an async function. Middlware handlers ' +
96
- 'can be either async/await or callback-based. Async handler ' +
97
- 'functions should accept maximum of 2 arguments: (req, res). ' +
98
- 'Non-async handlers should accept three arguments: (req, ' +
99
- 'res, next).'
95
+ 'callback) but is also an async function. Middleware ' +
96
+ 'handlers can be either async/await or callback-based. Async ' +
97
+ 'handler functions should accept maximum of 2 arguments: ' +
98
+ '(req, res). Non-async handlers should accept three ' +
99
+ 'arguments: (req, res, next).'
100
100
) ;
101
101
}
102
102
0 commit comments