Skip to content

Warn about possible exceptions during file decoding#1022

Open
deemp wants to merge 1 commit intohaskell:masterfrom
deemp:master
Open

Warn about possible exceptions during file decoding#1022
deemp wants to merge 1 commit intohaskell:masterfrom
deemp:master

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