mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02:00
sync: log when we abandon the sync due to a fatal error
This commit is contained in:
parent
be22735609
commit
be79b47a7a
@ -164,6 +164,7 @@ func (s *syncCopyMove) processError(err error) {
|
|||||||
switch {
|
switch {
|
||||||
case fserrors.IsFatalError(err):
|
case fserrors.IsFatalError(err):
|
||||||
if !s.aborting() {
|
if !s.aborting() {
|
||||||
|
fs.Errorf(nil, "Cancelling sync due to fatal error: %v", err)
|
||||||
s.cancel()
|
s.cancel()
|
||||||
}
|
}
|
||||||
s.fatalErr = err
|
s.fatalErr = err
|
||||||
|
Loading…
Reference in New Issue
Block a user