Skip to content

Commit

Permalink
Return error string from ztest.runvec on compile error (#5283)
Browse files Browse the repository at this point in the history
This matches the behavior of ztest.runzq and makes errorRE work in
vector tests.
  • Loading branch information
nwt authored Sep 16, 2024
1 parent 4a1ebf5 commit ac0fd0a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ztest/ztest.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ac0fd0a

Please sign in to comment.