From be79b47a7a1e440211f7f111d2704e17e7c1f801 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Thu, 3 May 2018 14:45:28 +0100 Subject: [PATCH] sync: log when we abandon the sync due to a fatal error --- fs/sync/sync.go | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/sync/sync.go b/fs/sync/sync.go index be7152fd0..b2247a41f 100644 --- a/fs/sync/sync.go +++ b/fs/sync/sync.go @@ -164,6 +164,7 @@ func (s *syncCopyMove) processError(err error) { switch { case fserrors.IsFatalError(err): if !s.aborting() { + fs.Errorf(nil, "Cancelling sync due to fatal error: %v", err) s.cancel() } s.fatalErr = err