From a9f18f8093c42a571de7d968e9fa22424a8e3cf8 Mon Sep 17 00:00:00 2001 From: albertony <12441419+albertony@users.noreply.github.com> Date: Sat, 6 Nov 2021 15:55:37 +0100 Subject: [PATCH] Set proper exit code for errors that are not low-level retried (e.g. size/timestamp changing) Fixes #5785 --- cmd/cmd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cmd.go b/cmd/cmd.go index a9f0e910f..f2aea1fdf 100644 --- a/cmd/cmd.go +++ b/cmd/cmd.go @@ -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)