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) os.Exit(exitcode.TransferExceeded)
case fserrors.ShouldRetry(err): case fserrors.ShouldRetry(err):
os.Exit(exitcode.RetryError) os.Exit(exitcode.RetryError)
case fserrors.IsNoRetryError(err): case fserrors.IsNoRetryError(err), fserrors.IsNoLowLevelRetryError(err):
os.Exit(exitcode.NoRetryError) os.Exit(exitcode.NoRetryError)
case fserrors.IsFatalError(err): case fserrors.IsFatalError(err):
os.Exit(exitcode.FatalError) os.Exit(exitcode.FatalError)