Skip to content

Commit

Permalink
include additinoal logging for error message when wipedisk command er…
Browse files Browse the repository at this point in the history
…rors out
  • Loading branch information
ibrokethecloud committed Feb 10, 2025
1 parent f2c9e76 commit 38fe23a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pkg/console/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -1227,8 +1227,9 @@ func executeWipeDisks(ctx context.Context, name string) error {
}

func runCommand(cmd *exec.Cmd) error {
if err := cmd.Start(); err != nil {
return err
output, err := cmd.CombinedOutput()
if err != nil {
logrus.Error(string(output))
}
return cmd.Wait()
return err
}

0 comments on commit 38fe23a

Please sign in to comment.