Skip to content

Commit

Permalink
chore: added errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gentlementlegen committed Sep 23, 2024
1 parent c902519 commit 7b728e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/validate-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ async function main() {
} else {
finalErrors = [e as ValueError];
}
throw { errors: finalErrors, payload };
}
return { payload, errors: finalErrors };
return { errors: finalErrors, payload };
}

main()
Expand Down

0 comments on commit 7b728e7

Please sign in to comment.