koa-mongo-error
v1.0.0
Published
Convert a mongo error in to an HTTP error.
Downloads
2
Readme
koa-mongo-error
usage
var mongoError = require('koa-mongo-error');
app.use(error()); // koa-error
app.use(mongoError())); // translates some errors to http-errors
app.use(function* () {
// do something with mongo
});