-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add better logging of errors while parsing json input
this will now print the data received from pnpm/stdin if an error occurs in addition to the zod error (formatted using `.format()`, which somewhat simplifies the zod error but looses a bit of information in the process). A few default zod messages are now overwritten to better reflect what is actually relevant in the input data. Additionally we now check for pnpm errors and treat them differently from zod validation errors
- Loading branch information
1 parent
732731b
commit abcff00
Showing
2 changed files
with
49 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters