From ac0fd0a2450e4980018499ca06a17c1f9d617d1f Mon Sep 17 00:00:00 2001 From: Noah Treuhaft Date: Mon, 16 Sep 2024 17:45:09 -0400 Subject: [PATCH] Return error string from ztest.runvec on compile error (#5283) This matches the behavior of ztest.runzq and makes errorRE work in vector tests. --- ztest/ztest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ztest/ztest.go b/ztest/ztest.go index 65915cd330..68da84deb4 100644 --- a/ztest/ztest.go +++ b/ztest/ztest.go @@ -582,7 +582,7 @@ func runvec(zedProgram string, input string, outputFlags []string) (string, stri rctx := runtime.NewContext(context.Background(), zctx) puller, err := compiler.VectorCompile(rctx, zedProgram, object) if err != nil { - return "", "", err + return "", err.Error(), err } zw, err := anyio.NewWriter(zio.NopCloser(&outbuf), outflags.Options()) if err != nil {