rectify function and variable referred in pkg/archive/changes_linux.go

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>

Signed-off-by: lixiaobing10051267 <li.xiaobing1@zte.com.cn>
This commit is contained in:
lixiaobing10051267 2016-12-15 16:25:07 +08:00
parent ec8b286dd3
commit e5ada578c3
1 changed files with 1 additions and 1 deletions

View File

@ -65,7 +65,7 @@ func walkchunk(path string, fi os.FileInfo, dir string, root *FileInfo) error {
} }
parent := root.LookUp(filepath.Dir(path)) parent := root.LookUp(filepath.Dir(path))
if parent == nil { if parent == nil {
return fmt.Errorf("collectFileInfoForChanges: Unexpectedly no parent for %s", path) return fmt.Errorf("walkchunk: Unexpectedly no parent for %s", path)
} }
info := &FileInfo{ info := &FileInfo{
name: filepath.Base(path), name: filepath.Base(path),