mirror of
https://github.com/rclone/rclone.git
synced 2024-11-07 17:14:44 +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