Merge pull request #473 from mitchellh/do-error-message

builder/digitalocean: error message key is "message" not "error_message"
This commit is contained in:
Mitchell Hashimoto 2013-09-29 12:10:00 -07:00
commit bfba3163c6
1 changed files with 1 additions and 1 deletions

View File

@ -227,7 +227,7 @@ func NewRequest(d DigitalOceanClient, path string, params url.Values) (map[strin
}
if status == "ERROR" {
status = decodedResponse["error_message"].(string)
status = decodedResponse["message"].(string)
}
lastErr = errors.New(fmt.Sprintf("Received error from DigitalOcean (%d): %s",