Skip to content

Commit

Permalink
Fix crash (#2748)
Browse files Browse the repository at this point in the history
If gRPC call fails, res is nill :(
  • Loading branch information
martinmaly authored Feb 5, 2022
1 parent a4fe965 commit adbae18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion porch/engine/pkg/engine/grpcruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func (gr *grpcRunner) Run(r io.Reader, w io.Writer) error {
Image: gr.image,
})
if err != nil {
return fmt.Errorf("func eval failed: %w (%s)", err, string(res.Log))
return fmt.Errorf("func eval failed: %w", err)
}
if _, err := w.Write(res.ResourceList); err != nil {
return fmt.Errorf("failed to write function runner output: %w", err)
Expand Down

0 comments on commit adbae18

Please sign in to comment.