mirror of
https://github.com/rclone/rclone.git
synced 2025-02-22 23:45:40 +08:00
sync: Fix log message containing <nil>
This commit is contained in:
parent
18c75a81f9
commit
7047c67a5e
@ -941,12 +941,12 @@ func (s *syncCopyMove) transfer(dst, src BasicInfo, job listDirJob, jobs *[]list
|
|||||||
} else {
|
} else {
|
||||||
// FIXME src is file, dst is directory
|
// FIXME src is file, dst is directory
|
||||||
err := errors.New("can't overwrite directory with file")
|
err := errors.New("can't overwrite directory with file")
|
||||||
Errorf(srcX, "%v", err)
|
Errorf(dst, "%v", err)
|
||||||
s.processError(err)
|
s.processError(err)
|
||||||
}
|
}
|
||||||
case *Dir:
|
case *Dir:
|
||||||
// Do the same thing to the entire contents of the directory
|
// Do the same thing to the entire contents of the directory
|
||||||
dstX, ok := dst.(*Dir)
|
_, ok := dst.(*Dir)
|
||||||
if ok {
|
if ok {
|
||||||
if job.srcDepth > 0 && job.dstDepth > 0 {
|
if job.srcDepth > 0 && job.dstDepth > 0 {
|
||||||
*jobs = append(*jobs, listDirJob{
|
*jobs = append(*jobs, listDirJob{
|
||||||
@ -958,7 +958,7 @@ func (s *syncCopyMove) transfer(dst, src BasicInfo, job listDirJob, jobs *[]list
|
|||||||
} else {
|
} else {
|
||||||
// FIXME src is dir, dst is file
|
// FIXME src is dir, dst is file
|
||||||
err := errors.New("can't overwrite file with directory")
|
err := errors.New("can't overwrite file with directory")
|
||||||
Errorf(dstX, "%v", err)
|
Errorf(dst, "%v", err)
|
||||||
s.processError(err)
|
s.processError(err)
|
||||||
}
|
}
|
||||||
default:
|
default:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user