Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

box: fix unhelpful decoding of error messages into decimal numbers

Nick Craig-Woodd12a92eac9e0
diff --git a/backend/box/api/types.go b/backend/box/api/types.go
index f8e92638f..b96349903 100644
--- a/backend/box/api/types.go
+++ b/backend/box/api/types.go
@@ -52,7 +52,7 @@ func (e *Error) Error() string {
out += ": " + e.Message
}
if e.ContextInfo != nil {
- out += fmt.Sprintf(" (%+v)", e.ContextInfo)
+ out += fmt.Sprintf(" (%s)", string(e.ContextInfo))
}
return out
}