rephrase log message.
This commit is contained in:
parent
0d19fbc27d
commit
ecad3348b3
|
@ -284,7 +284,9 @@ func (p *Provisioner) Provision(ui packer.Ui, comm packer.Communicator) error {
|
|||
if cmd.ExitStatus == packer.CmdDisconnect {
|
||||
if !p.config.ExpectDisconnect {
|
||||
return fmt.Errorf("Script disconnected unexpectedly. " +
|
||||
"Try adding \"expect_disconnect\": true in the shell provisioner parameters.")
|
||||
"If you expected your script to disconnect, i.e. from a " +
|
||||
"restart, you can try adding `\"expect_disconnect\": true` " +
|
||||
"to the shell provisioner parameters.")
|
||||
}
|
||||
} else if cmd.ExitStatus != 0 {
|
||||
return fmt.Errorf("Script exited with non-zero exit status: %d", cmd.ExitStatus)
|
||||
|
|
Loading…
Reference in New Issue