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: sm
GPG Key ID: 4E4B72F479BA3CE5

View File

@ -39,7 +39,7 @@ func Pull(root string) error {
a := pm.Available{} a := pm.Available{}
if err := json.NewDecoder(resp.Body).Decode(&a); err != nil { 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) a.SetRemote(u)
o.Update(a) o.Update(a)