瀏覽代碼

Merge pull request #9613 from pwaller/push-err-confusion-fix

Improve message when pushing a non-existent image
Jessie Frazelle 10 年之前
父節點
當前提交
e6a68a1c87
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      graph/graph.go

+ 1 - 1
graph/graph.go

@@ -88,7 +88,7 @@ func (graph *Graph) Exists(id string) bool {
 func (graph *Graph) Get(name string) (*image.Image, error) {
 	id, err := graph.idIndex.Get(name)
 	if err != nil {
-		return nil, err
+		return nil, fmt.Errorf("could not find image: %v", err)
 	}
 	img, err := image.LoadImage(graph.ImageRoot(id))
 	if err != nil {