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

fs: correct default implementation of fs.CountError

Nick Craig-Wood8053fc4e1634
diff --git a/fs/config.go b/fs/config.go
index da60ada84..356479731 100644
--- a/fs/config.go
+++ b/fs/config.go
@@ -29,11 +29,11 @@ var (
}
// CountError counts an error. If any errors have been
- // counted then it will exit with a non zero error code.
+ // counted then rclone will exit with a non zero error code.
//
// This is a function pointer to decouple the config
// implementation from the fs
- CountError = func(err error) error { return nil }
+ CountError = func(err error) error { return err }
// ConfigProvider is the config key used for provider options
ConfigProvider = "provider"