feat(users/Profpatsch/whatcd-resolver): show json val on parse err
The json parsing library gives us an error path where the parse failed, which means we can index into the path to show the json value that failed us. This can be quite expensive (and large!) of course, but the error message clarity is worth it methinks. Change-Id: Icacbd799254aaecd4a939ca13e6070d68a78138d Reviewed-on: https://cl.tvl.fyi/c/depot/+/12952 Tested-by: BuildkiteCI Reviewed-by: Profpatsch <mail@profpatsch.de>
This commit is contained in:
parent
0319b5e6c0
commit
722499d8a9
5 changed files with 94 additions and 7 deletions
|
|
@ -8,6 +8,7 @@ pkgs.haskellPackages.mkDerivation {
|
|||
./my-prelude.cabal
|
||||
./src/Aeson.hs
|
||||
./src/Comparison.hs
|
||||
./src/Debug.hs
|
||||
./src/Json.hs
|
||||
./src/Json/Enc.hs
|
||||
./src/Arg.hs
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue