mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 16:34:30 +01:00
sync: Only print "There was nothing to transfer" if no errors
See: https://forum.rclone.org/t/immutable-should-set-retries-1-when-source-and-dest-are-different/21326
This commit is contained in:
parent
b3815dc0c2
commit
963c0f28b9
@ -893,7 +893,8 @@ func (s *syncCopyMove) run() error {
|
|||||||
// Read the error out of the context if there is one
|
// Read the error out of the context if there is one
|
||||||
s.processError(s.ctx.Err())
|
s.processError(s.ctx.Err())
|
||||||
|
|
||||||
if s.deleteMode != fs.DeleteModeOnly && accounting.Stats(s.ctx).GetTransfers() == 0 {
|
// Print nothing to transfer message if there were no transfers and no errors
|
||||||
|
if s.deleteMode != fs.DeleteModeOnly && accounting.Stats(s.ctx).GetTransfers() == 0 && s.currentError() == nil {
|
||||||
fs.Infof(nil, "There was nothing to transfer")
|
fs.Infof(nil, "There was nothing to transfer")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user