fs: correct default implementation of fs.CountError

This commit is contained in:
Nick Craig-Wood 2020-12-30 10:37:14 +00:00
parent 66c3f2f31f
commit 8053fc4e16

View file

@ -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"