Closed CherryDT closed 5 years ago
As soon as the koaErrorHandler middleware is added, errors become a 404 and get swallowed instead of getting handled by the other error handlers.
koaErrorHandler
This is because your middleware is missing a throw err; at the end of the catch block.
throw err;
catch
As soon as the
koaErrorHandler
middleware is added, errors become a 404 and get swallowed instead of getting handled by the other error handlers.This is because your middleware is missing a
throw err;
at the end of thecatch
block.