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

Elaborate on the error [feature suggestion] #115

Open
petric3 opened this issue Jun 13, 2022 · 1 comment
Open

Elaborate on the error [feature suggestion] #115

petric3 opened this issue Jun 13, 2022 · 1 comment

Comments

@petric3
Copy link

petric3 commented Jun 13, 2022

I'm getting pretty long streamed json messages of different struct. Errors like the following one happens quite often.
image

It's quite clear that there's redundant/empty space but it's very hard to locate it at the given position. Is it possible to elaborate on the error's position, e.g. if empty space, then give extra say 10 before and after characters to be easier searched for, or even better to jump to that position where the error is. Thank you for consideration.

@mholt
Copy link
Owner

mholt commented Jun 13, 2022

Thanks for the request. It's a good idea, but I don't generate the error message. I'm not sure if it has a particular structure or if it's just a string. If it's just a string then getting its position would be a bit hacky and inelegant. But if we could then maybe we could augment the error message ourselves to display surrounding text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants