bisync: fix retryable without --resync error message when --resync has a critical failure

This commit is contained in:
Gustavo V. F.
2026-05-02 12:47:07 -03:00
committed by Nick Craig-Wood
parent 87d0b59a51
commit 5e9cb39084

View File

@@ -196,7 +196,7 @@ func Bisync(ctx context.Context, fs1, fs2 fs.Fs, optArg *Options) (err error) {
}
if b.critical {
if b.retryable && b.opt.Resilient {
if b.retryable && b.opt.Resilient && !b.opt.Resync {
fs.Errorf(nil, Color(terminal.RedFg, "Bisync critical error: %v"), err)
fs.Error(nil, Color(terminal.YellowFg, "Bisync aborted. Error is retryable without --resync due to --resilient mode."))
} else {