4.16.3
Improve error messages when non-function provided as middleware
Use "%o" in path debug to tell types apart