Skip to content

Commit

Permalink
Merge pull request #27 from icapps/f/celebrate-own-implementation
Browse files Browse the repository at this point in the history
F/celebrate own implementation
  • Loading branch information
knor-el-snor authored Oct 4, 2019
2 parents a8d1807 + eb9d52c commit c22e845
Show file tree
Hide file tree
Showing 6 changed files with 467 additions and 734 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ node_js:
- "6"
- "8"
- "10"
- "lts/*"

sudo: false

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ throw new ApiError(400, errors.BAD_REQUEST);

### parseErrors(error, i18nOptions (optional))

Parse any data into an error object with all properties needed for jsonade parser. Also parses `express-validation` errors.
Parse any data into an error object with all properties needed for jsonade parser. Also parses [`express-validation`](https://github.com/andrewkeig/express-validation) and [`celebrate`](https://github.com/arb/celebrate) errors.

```javascript
const error = new BadRequestError(...);
Expand Down
Loading

0 comments on commit c22e845

Please sign in to comment.