Add context (url) for failed pull

This commit is contained in:
Stephen McQuay 2018-03-02 23:23:14 -08:00
parent dd3fecc699
commit 3fd56a8276
Signed by untrusted user: sm
GPG Key ID: 4E4B72F479BA3CE5

View File

@ -39,7 +39,7 @@ func Pull(root string) error {
a := pm.Available{}
if err := json.NewDecoder(resp.Body).Decode(&a); err != nil {
return errors.Wrap(err, "decode remote available")
return errors.Wrapf(err, "decode remote available for %q", u.String())
}
a.SetRemote(u)
o.Update(a)