mirror of
https://github.com/rclone/rclone.git
synced 2025-01-13 20:38:12 +02: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{}{}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
err = errors.Wrapf(err, "error listing: %s", fs)
|
||||
}
|
||||
return files, err
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,8 @@ package fs
|
||||
import (
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
"github.com/pkg/errors"
|
||||
)
|
||||
|
||||
type syncCopyMove struct {
|
||||
@ -103,6 +105,9 @@ func (s *syncCopyMove) readSrcUsingChan() {
|
||||
return nil
|
||||
})
|
||||
close(s.srcFilesChan)
|
||||
if err != nil {
|
||||
err = errors.Wrapf(err, "error listing source: %s", s.fsrc)
|
||||
}
|
||||
s.srcFilesResult <- err
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user