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 Jan 15, 2025
1 parent 82cde1f commit 8e2f3d5
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 8e2f3d5

Please sign in to comment.