瀏覽代碼

Fix error code message upon error on push

Guillaume J. Charmes 12 年之前
父節點
當前提交
30f009150f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      registry.go

+ 1 - 1
registry.go

@@ -710,7 +710,7 @@ func (graph *Graph) PushRepository(stdout io.Writer, remote string, localRepo Re
 		if errBody, err := ioutil.ReadAll(res2.Body); err != nil {
 			return err
 		} else {
-			return fmt.Errorf("Error: Status %d trying to push checksums %s: %s", res.StatusCode, remote, errBody)
+			return fmt.Errorf("Error: Status %d trying to push checksums %s: %s", res2.StatusCode, remote, errBody)
 		}
 	}