projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch '12913-secondary-mounts' refs #12913
[arvados.git]
/
sdk
/
go
/
arvados
/
error.go
diff --git
a/sdk/go/arvados/error.go
b/sdk/go/arvados/error.go
index 773a2e6f9c7d787406511f85a6a5585596153738..9a04855784a76eee88bb4119b1483fa3505b67f2 100644
(file)
--- 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
URL url.URL
StatusCode int
Status string
-
e
rrors []string
+
E
rrors []string
}
func (e TransactionError) Error() (s 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 e.Status != "" {
s = s + ": " + e.Status
}
- if len(e.
e
rrors) > 0 {
- s = s + ": " + strings.Join(e.
e
rrors, "; ")
+ if len(e.
E
rrors) > 0 {
+ s = s + ": " + strings.Join(e.
E
rrors, "; ")
}
return
}
}
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
var e TransactionError
if json.Unmarshal(buf, &e) != nil {
// No JSON-formatted error response
- e.
e
rrors = nil
+ e.
E
rrors = nil
}
e.Method = req.Method
e.URL = *req.URL
}
e.Method = req.Method
e.URL = *req.URL