-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds a pretty decoder that removes Aeson portion of decoding error
This splits the error message produced by `fromValue` into two: the Aeson and Fleece error message combined (the original behavior) and just the Fleece error message (that produced by the schema and the `Decoder` functions). `decodePretty`, as a result, produces a slightly easier to understand error message that is more suitable for displaying to users. Ideally, we would be able to remove the type from the error messages produced by the `Decoder` functions as well, but for now, this isn't changing that since it would alter the current tests' expected results.
- Loading branch information
Showing
3 changed files
with
15 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters