builder/digitalocean: error message key is "message" not "error_message"

This commit is contained in:
Jack Pearkes 2013-09-29 11:01:30 +02:00
parent d6be5d851e
commit 26278a7c72
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",