"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
webdav: show all available information when printing errors
Nick Craig-Wood63f413f477f3
diff --git a/backend/webdav/api/types.go b/backend/webdav/api/types.goindex 284b145fb..b92cc97b9 100644--- a/backend/webdav/api/types.go+++ b/backend/webdav/api/types.go@@ -5,6 +5,7 @@ import ("encoding/xml""regexp""strconv"+ "strings""time")@@ -109,16 +110,20 @@ type Error struct {// Error returns a string for the error and statistifes the error interfacefunc (e *Error) Error() string {+ var out []stringif e.Message != "" {- return e.Message+ out = append(out, e.Message)}if e.Exception != "" {- return e.Exception+ out = append(out, e.Exception)}if e.Status != "" {- return e.Status+ out = append(out, e.Status)}- return "Webdav Error"+ if len(out) == 0 {+ return "Webdav Error"+ }+ return strings.Join(out, ": ")}// Time represents represents date and time information for the