fix(ingestion): wrap naked error returns and harden mustJSON helper

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Mathias Bergqvist
2026-04-22 22:51:19 +02:00
parent 103f4d90bf
commit 04fefe8e9c
3 changed files with 10 additions and 4 deletions

View File

@@ -125,6 +125,9 @@ func TestRun_MergesDuplicatePaths(t *testing.T) {
}
func mustJSON(v any) string {
b, _ := json.Marshal(v)
b, err := json.Marshal(v)
if err != nil {
panic(err)
}
return string(b)
}