Selaa lähdekoodia

In error, the first letter is low-case letter

Signed-off-by: YuPengZTE <yu.peng36@zte.com.cn>
YuPengZTE 9 vuotta sitten
vanhempi
commit
4dbc78a5af
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      distribution/pull_v2.go
  2. 1 1
      distribution/pull_v2_test.go

+ 1 - 1
distribution/pull_v2.go

@@ -810,7 +810,7 @@ func fixManifestLayers(m *schema1.Manifest) error {
 
 	if imgs[len(imgs)-1].Parent != "" && runtime.GOOS != "windows" {
 		// Windows base layer can point to a base layer parent that is not in manifest.
-		return errors.New("Invalid parent ID in the base layer of the image.")
+		return errors.New("invalid parent ID in the base layer of the image")
 	}
 
 	// check general duplicates to error instead of a deadlock

+ 1 - 1
distribution/pull_v2_test.go

@@ -80,7 +80,7 @@ func TestFixManifestLayersBaseLayerParent(t *testing.T) {
 		},
 	}
 
-	if err := fixManifestLayers(&duplicateLayerManifest); err == nil || !strings.Contains(err.Error(), "Invalid parent ID in the base layer of the image.") {
+	if err := fixManifestLayers(&duplicateLayerManifest); err == nil || !strings.Contains(err.Error(), "invalid parent ID in the base layer of the image") {
 		t.Fatalf("expected an invalid parent ID error from fixManifestLayers")
 	}
 }