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

Improve wording of parse_error exception #4037

Closed
nlohmann opened this issue May 20, 2023 · 7 comments · Fixed by #4180
Closed

Improve wording of parse_error exception #4037

nlohmann opened this issue May 20, 2023 · 7 comments · Fixed by #4180

Comments

@nlohmann
Copy link
Owner

          @nlohmann This exact error happens enough that I'm wondering if there should be a more specific error message for it, such as "Error attempting to parse an empty input, check that your input string or stream contains the expected JSON."

Originally posted by @gregmarr in #4028 (comment)

@haseeb-xd
Copy link

haseeb-xd commented May 20, 2023

I would like to work on this, Can you please tell me where can I add new parse_error exception message.
Thanks

@nlohmann
Copy link
Owner Author

Please check the code where parse_error is thrown.

@theevilone45
Copy link
Contributor

Hey @nlohmann, can I do it? 😊

@nlohmann
Copy link
Owner Author

Hey @nlohmann, can I do it? 😊

Sure!

CosmicPegasis added a commit to CosmicPegasis/json that referenced this issue Jul 17, 2023
@st17931
Copy link

st17931 commented Jul 25, 2023

Is it done ?? Or i can look into it? @nlohmann

@nlohmann
Copy link
Owner Author

See #4073. It's not done yet.

@colbychaskell
Copy link
Contributor

colbychaskell commented Oct 7, 2023

Looks like the work on this fell through... I can work on this if needed.

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

Successfully merging a pull request may close this issue.

5 participants