Koa error middleware for EJS views