Skip to content

Commit

Permalink
Handle panic on exec error (#41)
Browse files Browse the repository at this point in the history
We're not correctly setting result in case of a run error, like exec
failure
  • Loading branch information
anupcshan authored Mar 26, 2024
1 parent ce98628 commit 1065b40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion result/result.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 1065b40

Please sign in to comment.