From 4c45cbea1823c8377f905aea716c2227919dbbad Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Mon, 11 Sep 2017 11:09:45 -0700 Subject: [PATCH] copy: error out if dst could not be listed --- fs/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/sync.go b/fs/sync.go index c7eb57ea2..ff1a85ef4 100644 --- a/fs/sync.go +++ b/fs/sync.go @@ -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 }