mirror of
https://github.com/rclone/rclone
synced 2024-12-02 11:53:45 +01:00
copy: error out if dst could not be listed
This commit is contained in:
parent
897690d997
commit
4c45cbea18
@ -1002,7 +1002,7 @@ func (s *syncCopyMove) processJob(job listDirJob) (jobs []listDirJob) {
|
||||
if dstListErr == ErrorDirNotFound {
|
||||
// Copy the stuff anyway
|
||||
} else if dstListErr != nil {
|
||||
s.processError(errors.Wrapf(srcListErr, "error reading destination directory %q", job.remote))
|
||||
s.processError(errors.Wrapf(dstListErr, "error reading destination directory %q", job.remote))
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user