Error returns a formatted error message
()
| 387 | |
| 388 | // Error returns a formatted error message |
| 389 | func (e *Error) Error() string { |
| 390 | if e.AzureError.Code != "" { |
| 391 | return fmt.Sprintf("azure.%s: status %d, code: %s", e.Op, e.Code, e.AzureError.Code) |
| 392 | } |
| 393 | return fmt.Sprintf("azure.%s: status %d", e.Op, e.Code) |
| 394 | } |
| 395 | |
| 396 | func (e *Error) parseXML() { |
| 397 | _ = xml.NewDecoder(bytes.NewReader(e.Body)).Decode(&e.AzureError) |
no outgoing calls