copy: error out if dst could not be listed

This commit is contained in:
Girish Ramakrishnan 2017-09-11 11:09:45 -07:00 committed by Nick Craig-Wood
parent 897690d997
commit 4c45cbea18

View File

@ -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
}