Permalink
Browse files

Merge branch 'getJSON-warn'

  • Loading branch information...
kaushalmodi committed Nov 7, 2018
2 parents d27deb3 + 2177908 commit bdec166612cc0e69edc89da4126c353f419bd968
Showing with 2 additions and 1 deletion.
  1. +2 −1 tpl/data/data.go
@@ -105,7 +105,8 @@ func (ns *Namespace) GetJSON(urlParts ...string) (v interface{}, err error) {
var c []byte
c, err = ns.getResource(req)
if err != nil {
return nil, _errors.Wrapf(err, "failed to get getJSON resource %q", url)
ns.deps.Log.WARN.Printf("Failed to get JSON resource %s: %s", url, err)
return nil, nil
}
err = json.Unmarshal(c, &v)
if err != nil {

0 comments on commit bdec166

Please sign in to comment.