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
the error message that arises from this invalid string is:
called `Result::unwrap()` on an `Err` value: Error("invalid type: integer `15`, expected a string", line: 1, column: 28)
Which is not very helpful since we don't even know which variant failed to deserialize.
I propose that the tag of the failed variant be included in the error message (this will also help disambiguated cases where the tag is provided as an integer), something like:
called `Result::unwrap()` on an `Err` value: Error("deserialzing tag `Para`: invalid type: integer `15`, expected a string", line: 1, column: 28)
The text was updated successfully, but these errors were encountered:
Consider the following snippet:
the error message that arises from this invalid string is:
Which is not very helpful since we don't even know which variant failed to deserialize.
I propose that the tag of the failed variant be included in the error message (this will also help disambiguated cases where the tag is provided as an integer), something like:
The text was updated successfully, but these errors were encountered: