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

sync: log when we abandon the sync due to a fatal error

Nick Craig-Woodbe79b47a7a1e
diff --git a/fs/sync/sync.go b/fs/sync/sync.go
index be7152fd0..b2247a41f 100644
--- a/fs/sync/sync.go
+++ b/fs/sync/sync.go
@@ -164,6 +164,7 @@ func (s *syncCopyMove) processError(err error) {
switch {
case fserrors.IsFatalError(err):
if !s.aborting() {
+ fs.Errorf(nil, "Cancelling sync due to fatal error: %v", err)
s.cancel()
}
s.fatalErr = err