diff --git a/check/checktest/checktest.go b/check/checktest/checktest.go index 0338c12..7b7ccf3 100644 --- a/check/checktest/checktest.go +++ b/check/checktest/checktest.go @@ -331,8 +331,8 @@ func compile(ctx context.Context, dirPaths []string, filePaths []string) ([]desc }, ), Reporter: reporter.NewReporter( - func(reporter.ErrorWithPos) error { - return nil + func(err reporter.ErrorWithPos) error { + return err }, func(errorWithPos reporter.ErrorWithPos) { warningErrorsWithPos = append(warningErrorsWithPos, errorWithPos)