mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
Allow getJSON errors to be ignored
This change is mostly motivated to get a more stable CI build (we're building the Hugo site there, with Instagram and Twitter shortcodes sometimes failing). Fixes #7866
This commit is contained in:
@@ -536,7 +536,7 @@ func (p *pageState) renderResources() (err error) {
|
||||
// mode when the same resource is member of different page bundles.
|
||||
toBeDeleted = append(toBeDeleted, i)
|
||||
} else {
|
||||
p.s.Log.ERROR.Printf("Failed to publish Resource for page %q: %s", p.pathOrTitle(), err)
|
||||
p.s.Log.Errorf("Failed to publish Resource for page %q: %s", p.pathOrTitle(), err)
|
||||
}
|
||||
} else {
|
||||
p.s.PathSpec.ProcessingStats.Incr(&p.s.PathSpec.ProcessingStats.Files)
|
||||
@@ -718,7 +718,7 @@ func (p *pageState) getContentConverter() converter.Converter {
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
p.s.Log.ERROR.Println("Failed to create content converter:", err)
|
||||
p.s.Log.Errorln("Failed to create content converter:", err)
|
||||
}
|
||||
return p.m.contentConverter
|
||||
}
|
||||
|
Reference in New Issue
Block a user