diff --git a/internal/testrunner/runners/system/tester.go b/internal/testrunner/runners/system/tester.go index ea886ae78..dd0a7892d 100644 --- a/internal/testrunner/runners/system/tester.go +++ b/internal/testrunner/runners/system/tester.go @@ -1908,7 +1908,10 @@ func validateIgnoredFields(stackVersionString string, scenario *scenarioTest, co return fmt.Errorf("failed to marshal degraded docs to JSON: %w", err) } - return fmt.Errorf("found ignored fields in data stream %s: %v. Affected documents: %s", scenario.dataStream, ignoredFields, degradedDocsJSON) + return testrunner.ErrTestCaseFailed{ + Reason: "found ignored fields in data stream", + Details: fmt.Sprintf("found ignored fields in data stream %s: %v. Affected documents: %s", scenario.dataStream, ignoredFields, degradedDocsJSON), + } } return nil