image/tarexport: fix error formatting

Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
Alexander Morozov 2016-05-02 10:26:32 -07:00
parent b0a5762348
commit a2eacff5c7
1 changed files with 1 additions and 1 deletions

View File

@ -146,7 +146,7 @@ func (l *tarexporter) setParentID(id, parentID image.ID) error {
return err
}
if !checkValidParent(img, parent) {
return fmt.Errorf("image %v is not a valid parent for %v", parent.ID, img.ID)
return fmt.Errorf("image %v is not a valid parent for %v", parent.ID(), img.ID())
}
return l.is.SetParent(id, parentID)
}