![](http://i.imgur.com/vLYNR8r.png)
Errorify for Sailor
Error normalizer for Sailor. Extend express-validator-errors interface.
Install
npm install sailor-errorify
Usage
errorify = require 'sailor-errorify'
or using sailor
dependency
sailor = require 'sailorjs'errorify = sailorerrorify
API
Ideal for response with error schema, for example:
unless user return errorify add 'identifier'translateget'User.NotFound'user end res'notFound'
In this case return a notFound
response:
License
MIT © Kiko Beats