-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Enhancement: Include the file name in parse error messaging #1553
Comments
I believe this is already so in master. 1.6 is coming. |
+1 for this enhancement 😄 Even on |
Still an issue in 2023. There should be a switch that includes the full file path in the erorr message. This is especially a pain in the rear when processing thousands of small json files with jq in parallel fashion. |
7 years later... still not implemented 🤦♂️ |
🤦♂️ |
Did a draft PR #3146 I wonder what @nicowilliams referred to about as this being fixed in master? maybe reporting of current |
Here's an example output of calling
...so there is definitely some type of error which shows the filename! |
It would be helpful if the filename were included in parse error messages. While this could fairly easily be handled by a script, it would be nice if this functionality was included in
jq
.Example script
Currently, a parse error produces the following output.
It would be helpful if it output something like this.
Even better, this feature could be added behind a
--verbose
flag and include the context of the error.The text was updated successfully, but these errors were encountered: