From 240f5456a4be03687328f76fd1753168b309304a Mon Sep 17 00:00:00 2001 From: Marat Reimers <16486128+maratori@users.noreply.github.com> Date: Tue, 7 Oct 2025 00:35:54 +0200 Subject: [PATCH] Return the original parsing error from `checktest` Fixes bufbuild/bufplugin-go#18 --- check/checktest/checktest.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)