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 Dec 1, 2024
1 parent b4918f6 commit cba5bc3
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 @@ -1196,8 +1196,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 cba5bc3

Please sign in to comment.