add better error messages for non-functions as middleware
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Only functions are supported for [VERB](path, fn), use(path, fn) and all(fn) calls in Router and Routes. This catches those errors earlier to avoid checks during actual request processing.
authored by Roman Shtylman · committed by Roman Shtylman · parent 7693aa5 · Browse files · 2 files+12 added−0 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
2 files+12 added−0 removed
- other:+12 added−0 removed