Skip to content

Commit

Permalink
err
Browse files Browse the repository at this point in the history
  • Loading branch information
matas-cast committed Dec 10, 2024
1 parent e17ed3e commit b928cd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/containers/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ func (c *Client) getPodSandbox(ctx context.Context, cont *criapi.Container) (*cr
}

if len(sandboxResp.Items) == 0 {
return nil, fmt.Errorf("pod sandbox not found: %v", err)
return nil, fmt.Errorf("pod sandbox not found: %w", err)
}
if len(sandboxResp.Items) > 1 {
return nil, fmt.Errorf("multiple sandboxes found when one was expected")
Expand Down

0 comments on commit b928cd8

Please sign in to comment.