Add context (url) for failed pull
This commit is contained in:
parent
dd3fecc699
commit
3fd56a8276
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user