1
mirror of https://github.com/rclone/rclone synced 2024-11-21 22:50:16 +01:00

Set proper exit code for errors that are not low-level retried (e.g. size/timestamp changing)

Fixes #5785
This commit is contained in:
albertony 2021-11-06 15:55:37 +01:00 committed by Nick Craig-Wood
parent 8e5e230b81
commit a9f18f8093

View File

@ -489,7 +489,7 @@ func resolveExitCode(err error) {
os.Exit(exitcode.TransferExceeded)
case fserrors.ShouldRetry(err):
os.Exit(exitcode.RetryError)
case fserrors.IsNoRetryError(err):
case fserrors.IsNoRetryError(err), fserrors.IsNoLowLevelRetryError(err):
os.Exit(exitcode.NoRetryError)
case fserrors.IsFatalError(err):
os.Exit(exitcode.FatalError)