builder/digitalocean: error message key is "message" not "error_message"
This commit is contained in:
parent
d6be5d851e
commit
26278a7c72
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue