Browse Source

Merge pull request #22457 from LK4D4/fix_error_format

image/tarexport: fix error formatting
Aaron Lehmann 9 năm trước cách đây
mục cha
commit
ca95f64968
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      image/tarexport/load.go

+ 1 - 1
image/tarexport/load.go

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