Extremely long error messages caused by slices into embedded file #20855
Labels
error message
This issue points out an error message that is unhelpful and should be improved.
Milestone
Zig Version
0.14.0-dev.121+ab4c461b7
Steps to Reproduce and Observed Output
Shortened reproducer:
Error:
Everytime a slice of above xml file makes it into an error message, the whole file will be printed.
Currently, the error output in my project is above 1MB.
Full reproducer: https://zigbin.io/c06707
Expected Output
Just output the data within the slice, not the data of the underlying array, especially if it's big.
In above case this would be something along the lines of:
The text was updated successfully, but these errors were encountered: