You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use expound in edna and I noticed that errors in 0.7.1 were harder to read than in 0.7.0 when they occur inside a large outer data structure. In 0.7.0, it points to the specific part of the data structure first:
In 0.7.1, it prints the entire data structure first, and you have to scroll (sometimes far) down to see it eventually point to the specific part of the data structure where the error is:
Thanks for reporting this! In 0.7.0, some relevant errors were omitted when there were multiple ways to fix the value (which occurred in macro specs which had many ‘or’ or ‘alt’ specs) so in 0.7.1, I changed the code to show every problem.
However, I agree this choice is quite verbose in this case where only the inner spec is relevant. I’ll think more about how to do the best thing in both cases.
I use expound in edna and I noticed that errors in 0.7.1 were harder to read than in 0.7.0 when they occur inside a large outer data structure. In 0.7.0, it points to the specific part of the data structure first:
In 0.7.1, it prints the entire data structure first, and you have to scroll (sometimes far) down to see it eventually point to the specific part of the data structure where the error is:
I posted a code example and the output of both versions here https://gist.github.com/oakes/dbc902e8fb077d6430fa0909cf4d7272
The text was updated successfully, but these errors were encountered: