Skip to content

Commit 69e22dd

Browse files
committed
fix: throw ValidationError instead of boolean in response encode path
1 parent 169e54a commit 69e22dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/compose.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ const composeValidationFactory = ({
341341
`}catch{` +
342342
`throw new ValidationError('response',validator.response[${status}],${name},${allowUnsafeValidationDetails})` +
343343
`}`
344-
: `throw new ValidationError('response',validator.response[${status}],${name}),${allowUnsafeValidationDetails}`) +
344+
: `throw new ValidationError('response',validator.response[${status}],${name},${allowUnsafeValidationDetails})`) +
345345
`}`
346346
} else {
347347
if (!appliedCleaner) code += clean()

0 commit comments

Comments
 (0)