mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
@@ -120,7 +120,6 @@ func (ns *Namespace) GetJSON(urlParts ...string) (v interface{}, err error) {
|
||||
|
||||
if err != nil {
|
||||
return nil, _errors.Wrapf(err, "failed to get getJSON resource %q", url)
|
||||
return nil, nil
|
||||
}
|
||||
return
|
||||
}
|
||||
|
@@ -179,7 +179,7 @@ func (t *TemplateAdapter) addFileContext(name string, inerr error) error {
|
||||
}
|
||||
return false
|
||||
}
|
||||
// TODO(bep) 2errors text vs HTML
|
||||
|
||||
fe, ok := herrors.WithFileContext(ferr, realFilename, f, lineMatcher)
|
||||
if ok || !hasMaster {
|
||||
return fe
|
||||
|
Reference in New Issue
Block a user