sync: log when we abandon the sync due to a fatal error

This commit is contained in:
Nick Craig-Wood 2018-05-03 14:45:28 +01:00
parent be22735609
commit be79b47a7a

View file

@ -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