cleanup some error handling lint issues

This commit is contained in:
Joel Wetzell
2026-05-17 09:48:49 -05:00
parent 8752b35ea4
commit b4d4ef3421
8 changed files with 77 additions and 4 deletions
@@ -209,6 +209,13 @@ func TestBadScriptJS(t *testing.T) {
Params: test.params,
})
if err != nil {
if test.errorString != err.Error() {
t.Fatalf("script.js got error '%s', expected '%s'", err.Error(), test.errorString)
}
return
}
got, err := processorInstance.Process(t.Context(), common.WrappedPayload{Payload: test.payload})
if err == nil {