From 1065b402edc5b3b4dcc9df465f2354480309c9da Mon Sep 17 00:00:00 2001 From: Anup Chenthamarakshan Date: Tue, 26 Mar 2024 08:58:48 -0700 Subject: [PATCH] Handle panic on exec error (#41) We're not correctly setting result in case of a run error, like exec failure --- result/result.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/result/result.go b/result/result.go index dc30937..33f02d2 100644 --- a/result/result.go +++ b/result/result.go @@ -178,7 +178,7 @@ func RunWrapper(inputFiles []InputFile, successExitCodes []int32, run func(conte result, outputFiles, err := run(ctx) duration := time.Since(startTs) if err != nil { - result := &pvn_wrapper_pb.Output{} + result = &pvn_wrapper_pb.Output{} result.ExecError = err.Error() result.ExitCode = -1 }