Skip to content

Commit

Permalink
Use the runCmd wrapper for start to not miss error
Browse files Browse the repository at this point in the history
  • Loading branch information
afbjorklund committed May 9, 2020
1 parent ac01e92 commit 46025ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/drivers/kic/oci/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func StartContainer(ociBin string, container string) error {

args = append(args, container)

if err := PrefixCmd(exec.Command(ociBin, args...)).Run(); err != nil {
if _, err := runCmd(exec.Command(ociBin, args...)); err != nil {
return err
}

Expand Down

0 comments on commit 46025ec

Please sign in to comment.