forked from TrueCloudLab/rclone
copy: error out if dst could not be listed
This commit is contained in:
parent
897690d997
commit
4c45cbea18
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue