diff --git a/internal/testrunner/runners/system/tester.go b/internal/testrunner/runners/system/tester.go index 675e7109d..cb2b73d23 100644 --- a/internal/testrunner/runners/system/tester.go +++ b/internal/testrunner/runners/system/tester.go @@ -1923,7 +1923,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