Skip to content

Commit

Permalink
fix if case
Browse files Browse the repository at this point in the history
  • Loading branch information
wardpeet committed Feb 26, 2021
1 parent a8133e6 commit 61da1c0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const constructError = (

// validate
const { error } = errorSchema.validate(structuredError)
if (error !== null) {
if (error) {
console.log(`Failed to validate error`, error)
process.exit(1)
}
Expand Down

0 comments on commit 61da1c0

Please sign in to comment.