New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
source JSON might be lost in a corner case #35
Labels
bug
Something isn't working
Comments
Analysis: One of the feasible solutions: reinstate (rewrite) source JSON into the source file upon those cases. Reinstating of the source JSON is preferable solution (vs delaying opening file for write) for couple reasons:
Will be committing changes soon. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When option
-f
is used (to update the output right into the source JSON file) and either of these failures occur:fail: template argument failed interpolation
fail: file <name> holds an invalid JSON
fail: argument walk-type (<walk>) not allowed, due to mode <mode> already set
fail: non-walk argument <arg> not allowed, due to option -<opt> given
fail: non-walk argument <arg> not allowed, due to mode <mode> already set
then the source JSON file is lost (becomes empty)
The text was updated successfully, but these errors were encountered: