diff --git a/internal/testrunner/runners/pipeline/runner.go b/internal/testrunner/runners/pipeline/runner.go index afdf5c1ff..8c97da3d3 100644 --- a/internal/testrunner/runners/pipeline/runner.go +++ b/internal/testrunner/runners/pipeline/runner.go @@ -385,6 +385,16 @@ func checkErrorMessage(event json.RawMessage) error { return nil case string, []string: return fmt.Errorf("unexpected pipeline error: %s", m) + case []interface{}: + for i, v := range m { + switch v.(type) { + case string: + break + default: + return fmt.Errorf("unexpected pipeline error (unexpected error.message type %T at position %d): %v", v, i, m) + } + } + return fmt.Errorf("unexpected pipeline error: %s", m) default: return fmt.Errorf("unexpected pipeline error (unexpected error.message type %T): %[1]v", m) }