"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
Improve error message when source remote isn't found in sync #848
Nick Craig-Woodff41b0d4350a
diff --git a/fs/operations.go b/fs/operations.goindex 034ce21e4..1c7a0d156 100644--- a/fs/operations.go+++ b/fs/operations.go@@ -420,6 +420,9 @@ func readFilesMap(fs Fs, includeAll bool, dir string) (files map[string]Object,normalised[normalisedRemote] = struct{}{}return nil})+ if err != nil {+ err = errors.Wrapf(err, "error listing: %s", fs)+ }return files, err}diff --git a/fs/sync.go b/fs/sync.goindex 12d2cc154..8925414b2 100644--- a/fs/sync.go+++ b/fs/sync.go@@ -5,6 +5,8 @@ package fsimport ("sync""time"++ "github.com/pkg/errors")type syncCopyMove struct {@@ -103,6 +105,9 @@ func (s *syncCopyMove) readSrcUsingChan() {return nil})close(s.srcFilesChan)+ if err != nil {+ err = errors.Wrapf(err, "error listing source: %s", s.fsrc)+ }s.srcFilesResult <- err}