Skip to content
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

better error messages that return what line and what column the problem is at #65

Open
jestarray opened this issue Oct 4, 2020 · 1 comment
Labels
serde Affects serde-lexpr

Comments

@jestarray
Copy link

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Message("invalid type: cons cell, expected a number", None)', src\main.rs:778:59

I have no idea where this is at.

@rotty
Copy link
Owner

rotty commented Mar 8, 2023

serde-lexpr should probably play the same shenanigans as serde_json does, which has extra code to round-trip the location information by parsing the string produced by the error's Display implementation.

@rotty rotty added the serde Affects serde-lexpr label Mar 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
serde Affects serde-lexpr
Projects
None yet
Development

No branches or pull requests

2 participants