mirror of
https://github.com/rclone/rclone.git
synced 2025-01-24 07:10:25 +01:00
Improve error message when source remote isn't found in sync #848
This commit is contained in:
parent
e162377ca3
commit
ff41b0d435
@ -420,6 +420,9 @@ func readFilesMap(fs Fs, includeAll bool, dir string) (files map[string]Object,
|
|||||||
normalised[normalisedRemote] = struct{}{}
|
normalised[normalisedRemote] = struct{}{}
|
||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
|
if err != nil {
|
||||||
|
err = errors.Wrapf(err, "error listing: %s", fs)
|
||||||
|
}
|
||||||
return files, err
|
return files, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@ package fs
|
|||||||
import (
|
import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/pkg/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type syncCopyMove struct {
|
type syncCopyMove struct {
|
||||||
@ -103,6 +105,9 @@ func (s *syncCopyMove) readSrcUsingChan() {
|
|||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
close(s.srcFilesChan)
|
close(s.srcFilesChan)
|
||||||
|
if err != nil {
|
||||||
|
err = errors.Wrapf(err, "error listing source: %s", s.fsrc)
|
||||||
|
}
|
||||||
s.srcFilesResult <- err
|
s.srcFilesResult <- err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user