rephrase log message.

pull/4116/merge
Matthew Hooker 9 years ago
parent 0d19fbc27d
commit ecad3348b3
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1

@ -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…
Cancel
Save