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 for JSON parsing #633

Merged
merged 2 commits into from
Jan 24, 2025
Merged

Conversation

msooseth
Copy link
Collaborator

Description

We gave a VERY generic message for the JSON parser failures when parsing Forge JSONs. This fixes that, adding way better error messages.

Checklist

  • tested locally
  • added automated tests
  • updated the docs
  • updated the changelog

@msooseth msooseth force-pushed the better-error-messages branch from f0c3246 to 25b147b Compare January 20, 2025 15:03
@msooseth msooseth marked this pull request as ready for review January 20, 2025 16:09
@msooseth msooseth requested review from arcz and elopez January 20, 2025 16:09
@msooseth msooseth force-pushed the better-error-messages branch from 25b147b to 2bc3956 Compare January 22, 2025 16:24
@msooseth msooseth requested a review from blishko January 22, 2025 16:25
Copy link
Collaborator

@blishko blishko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!
I can't check the Haskell constructs, but seems to be OK :)

src/EVM/Solidity.hs Outdated Show resolved Hide resolved
Co-authored-by: Martin Blicha <[email protected]>
@msooseth
Copy link
Collaborator Author

Haha, the Haskell constructs were a bit hard to do, I agree. But it's correct, I kinda promise :D Thanks for checking through. Strange that my spell checker didn't find that issue, thanks for picking it up!!

Mate

@msooseth msooseth merged commit ad31b07 into main Jan 24, 2025
9 checks passed
@msooseth msooseth deleted the better-error-messages branch January 24, 2025 10:01
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

Successfully merging this pull request may close these issues.

2 participants