Fix error code message upon error on push

Upstream-commit: 30f009150f303ff496307778722ed5c2c3ad80c8
Component: engine
This commit is contained in:
Guillaume J. Charmes
2013-05-09 13:24:00 -07:00
parent 6b7f285df1
commit ad2835b0ef

View File

@ -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)
}
}