Handling errors using middleware

suggest change
app.use(async (ctx, next) => {
  try {
    await next() // attempt to invoke the next middleware downstream
  } catch (err) {
    handleError(err, ctx) // define your own error handling function
  }
})

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Koa Framework v2:
* Handling errors using middleware

Table Of Contents
1 npm
41 cli
43 grunt
59 Hack
62 Koa Framework v2
64 ES6
67 Redis
69 MongoDB
86 MongoDB
87 Lodash
91 CORS
105 N-API
108 Require