Commit bfba3163 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

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

builder/digitalocean: error message key is "message" not "error_message"
parents d6be5d85 26278a7c
...@@ -227,7 +227,7 @@ func NewRequest(d DigitalOceanClient, path string, params url.Values) (map[strin ...@@ -227,7 +227,7 @@ func NewRequest(d DigitalOceanClient, path string, params url.Values) (map[strin
} }
if status == "ERROR" { if status == "ERROR" {
status = decodedResponse["error_message"].(string) status = decodedResponse["message"].(string)
} }
lastErr = errors.New(fmt.Sprintf("Received error from DigitalOcean (%d): %s", lastErr = errors.New(fmt.Sprintf("Received error from DigitalOcean (%d): %s",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment