mirror of
https://github.com/rclone/rclone.git
synced 2025-02-21 19:42:11 +08:00

For few commands, RClone counts a error multiple times. This was fixed by creating a new error type which keeps a flag to remember if the error has already been counted or not. The CountError function now wraps the original error eith the above new error type and returns it.