Skip to content

Commit

Permalink
Fix overwriting err
Browse files Browse the repository at this point in the history
kubernetes#14424 podman start minikube returned with exit code 125
  • Loading branch information
criztovyl committed Jul 4, 2022
1 parent 6d3a105 commit 913868c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/drivers/kic/kic.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,13 +397,13 @@ func (d *Driver) Restart() error {

// Start an already created kic container
func (d *Driver) Start() error {
if err := oci.StartContainer(d.NodeConfig.OCIBinary, d.MachineName); err != nil {
if start_err := oci.StartContainer(d.NodeConfig.OCIBinary, d.MachineName); start_err != nil {
oci.LogContainerDebug(d.OCIBinary, d.MachineName)
_, err := oci.DaemonInfo(d.OCIBinary)
if err != nil {
_, info_err := oci.DaemonInfo(d.OCIBinary)
if info_err != nil {
return errors.Wrapf(oci.ErrDaemonInfo, "debug daemon info %q", d.MachineName)
}
return errors.Wrap(err, "start")
return errors.Wrap(start_err, "start")
}
checkRunning := func() error {
s, err := oci.ContainerStatus(d.NodeConfig.OCIBinary, d.MachineName)
Expand Down

0 comments on commit 913868c

Please sign in to comment.