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:
Profpatsch 2025-01-04 21:45:23 +01:00
parent 0319b5e6c0
commit 722499d8a9
5 changed files with 94 additions and 7 deletions

View file

@ -62,6 +62,7 @@ library
Arg
AtLeast
Comparison
Debug
Json
Json.Enc
Test