Skip to content

Commit

Permalink
disambiguates windows-restart messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mwhooker committed Jun 21, 2017
1 parent 837c352 commit 67e29e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions provisioner/windows-restart/provisioner.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,15 @@ WaitLoop:
select {
case <-waitDone:
if err != nil {
ui.Error(fmt.Sprintf("Error waiting for WinRM: %s", err))
ui.Error(fmt.Sprintf("Error waiting for machine to restart: %s", err))
return err
}

ui.Say("Machine successfully restarted, moving on")
close(p.cancel)
break WaitLoop
case <-timeout:
err := fmt.Errorf("Timeout waiting for WinRM.")
err := fmt.Errorf("Timeout waiting for machine to restart.")
ui.Error(err.Error())
close(p.cancel)
return err
Expand Down

0 comments on commit 67e29e1

Please sign in to comment.