mirror of
https://github.com/rclone/rclone
synced 2024-11-26 04:07:22 +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:
parent
8e5e230b81
commit
a9f18f8093
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user