X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bb91f86ea02e3535e3953ee0916dd6877bf585f7..ca544ed56275747db6423e9da0c34545296db3f5:/sdk/go/arvados/error.go diff --git a/sdk/go/arvados/error.go b/sdk/go/arvados/error.go index 773a2e6f9c..9a04855784 100644 --- a/sdk/go/arvados/error.go +++ b/sdk/go/arvados/error.go @@ -17,7 +17,7 @@ type TransactionError struct { URL url.URL StatusCode int Status string - errors []string + Errors []string } func (e TransactionError) Error() (s string) { @@ -25,8 +25,8 @@ func (e TransactionError) Error() (s string) { if e.Status != "" { s = s + ": " + e.Status } - if len(e.errors) > 0 { - s = s + ": " + strings.Join(e.errors, "; ") + if len(e.Errors) > 0 { + s = s + ": " + strings.Join(e.Errors, "; ") } return } @@ -35,7 +35,7 @@ func newTransactionError(req *http.Request, resp *http.Response, buf []byte) *Tr var e TransactionError if json.Unmarshal(buf, &e) != nil { // No JSON-formatted error response - e.errors = nil + e.Errors = nil } e.Method = req.Method e.URL = *req.URL