Skip to content

Commit

Permalink
Add own basic implementation for checking celebrate middleware errors
Browse files Browse the repository at this point in the history
  • Loading branch information
knor-el-snor committed Oct 4, 2019
1 parent a8d1807 commit a84e16d
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 448 deletions.
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 a84e16d

Please sign in to comment.