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

Warn about possible exceptions during file decoding #1022

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

deemp
Copy link

@deemp deemp commented May 20, 2023

In my project, I spent a couple of hours trying to determine the reason for an exception withBinaryFile: does not exist (No such file or directory).
After reading the current aeson docs, I expected that the case when the file is missing is also reported as a String error.

I see that currently, this is not true. I'm not sure these functions should handle missing files so I suggest to just warn about possible exceptions.

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.

1 participant