"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
serve restic: add more info to GET request error
Nick Craig-Wood7ccc6080b0ec
diff --git a/cmd/serve/restic/restic.go b/cmd/serve/restic/restic.goindex 8ed9626e3..dac587aa5 100644--- a/cmd/serve/restic/restic.go+++ b/cmd/serve/restic/restic.go@@ -293,9 +293,9 @@ func (s *server) getObject(w http.ResponseWriter, r *http.Request, remote stringw.WriteHeader(code)- _, err = io.Copy(w, file)+ n, err := io.Copy(w, file)if err != nil {- fs.Errorf(remote, "Didn't finish writing GET request: %v", err)+ fs.Errorf(remote, "Didn't finish writing GET request (wrote %d/%d bytes): %v", n, size, err)return}}