koa-error-handler
an error handler for koa, hack ctx.onerror
install
npm install koa-error-handler
Usage
var fs = ;var koa = ;var error = ;var app = ; ; app;
Options
error(app, options);
- all: if options.all exist, ignore negotiation
- text: text error handler
- json: json error handler
- html: html error handler
- template: default html error handler template path
License
MIT