koajs / onerror

an error handler for koa, hack ctx.onerror
MIT License
140 stars 20 forks source link

use node 6.7 提示: #13

Closed wohugb closed 7 years ago

wohugb commented 7 years ago
You have triggered an unhandledRejection, you may have forgotten to catch a Promise rejection:
AssertionError: non-error thrown: [object Object]
at Object.app.context.onerror (/mnt/api/node_modules/koa-onerror/index.js:38:5)
at process._tickDomainCallback (internal/process/next_tick.js:129:7)