Allow errors to carry multiple positions#3255
Conversation
|
I'd prefer for the JSON format. For one we should get rid of the |
We can do that, but I'm not sure it's necessary really? We're not going to be modifying positions after we've created the error. The fact we currently decorate errors with positions after the fact sometimes is just because we haven't finished the work to require it in the error constructor yet. |
|
(Also the choice of position to show is entirely arbitrary, since the error happens everywhere equally) |
|
Yeah, I don't feel strongly about the NEL wrapper at all, but I do think we shouldn't break the error format here, since the thing we want to communicate is still the always existing primary error. |
kritzcreek
left a comment
There was a problem hiding this comment.
I'd like to see a non-breaking change to the error format here
8e60ef9 to
1565e55
Compare
|
Updated to preserve the original error format, adding an |
As discussed in #3208 (comment)
I guess maybe the approach here is less good than exactly what I suggested in there, as it will break the JSON error format, whereas that would be backwards compatible?