Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Return early on non-Joi errors #31

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ const Relish = function Relish (opts) {
}

this.exports.failAction = (request, h, err) => {
if (!err.isJoi) {
return err
}

// parse error object
const errors = this.parseError(err)

Expand Down
Loading