From 4dbc78a5afdeaccbfe2be673d324550de4179903 Mon Sep 17 00:00:00 2001 From: YuPengZTE Date: Thu, 8 Sep 2016 16:44:56 +0800 Subject: [PATCH] In error, the first letter is low-case letter Signed-off-by: YuPengZTE --- distribution/pull_v2.go | 2 +- distribution/pull_v2_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/distribution/pull_v2.go b/distribution/pull_v2.go index 3cd8d33aae..3fc4b39505 100644 --- a/distribution/pull_v2.go +++ b/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 diff --git a/distribution/pull_v2_test.go b/distribution/pull_v2_test.go index 8555c81e6b..b745642e3b 100644 --- a/distribution/pull_v2_test.go +++ b/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") } }