rephrase log message.

This commit is contained in:
Matthew Hooker 2017-10-26 10:41:49 -07:00
parent 0d19fbc27d
commit ecad3348b3
No known key found for this signature in database
GPG Key ID: 7B5F933D9CE8C6A1
1 changed files with 3 additions and 1 deletions

View File

@ -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)