DEV Community

Discussion on: Central Error Handling in Express

Collapse
 
nedsoft profile image
Chinedu Orie

It's because, the function is a middleware, not a final destination, with next() returned, it would proceed to the next code to be executed.