Browse code

In error, the first letter is low-case letter

Signed-off-by: YuPengZTE <yu.peng36@zte.com.cn>

YuPengZTE authored on 2016/09/08 17:44:56
Showing 2 changed files
... ...
@@ -810,7 +810,7 @@ func fixManifestLayers(m *schema1.Manifest) error {
810 810
 
811 811
 	if imgs[len(imgs)-1].Parent != "" && runtime.GOOS != "windows" {
812 812
 		// Windows base layer can point to a base layer parent that is not in manifest.
813
-		return errors.New("Invalid parent ID in the base layer of the image.")
813
+		return errors.New("invalid parent ID in the base layer of the image")
814 814
 	}
815 815
 
816 816
 	// check general duplicates to error instead of a deadlock
... ...
@@ -80,7 +80,7 @@ func TestFixManifestLayersBaseLayerParent(t *testing.T) {
80 80
 		},
81 81
 	}
82 82
 
83
-	if err := fixManifestLayers(&duplicateLayerManifest); err == nil || !strings.Contains(err.Error(), "Invalid parent ID in the base layer of the image.") {
83
+	if err := fixManifestLayers(&duplicateLayerManifest); err == nil || !strings.Contains(err.Error(), "invalid parent ID in the base layer of the image") {
84 84
 		t.Fatalf("expected an invalid parent ID error from fixManifestLayers")
85 85
 	}
86 86
 }