mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-16 20:53:59 +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:
@@ -290,7 +290,7 @@ func (r *resourceAdapter) publish() {
|
||||
r.publisherErr = r.target.Publish()
|
||||
|
||||
if r.publisherErr != nil {
|
||||
r.spec.Logger.ERROR.Printf("Failed to publish Resource: %s", r.publisherErr)
|
||||
r.spec.Logger.Errorf("Failed to publish Resource: %s", r.publisherErr)
|
||||
}
|
||||
})
|
||||
|
||||
@@ -546,7 +546,7 @@ func (r *resourceAdapter) initTransform(publish, setContent bool) {
|
||||
if r.spec.ErrorSender != nil {
|
||||
r.spec.ErrorSender.SendError(r.transformationsErr)
|
||||
} else {
|
||||
r.spec.Logger.ERROR.Printf("Transformation failed: %s", r.transformationsErr)
|
||||
r.spec.Logger.Errorf("Transformation failed: %s", r.transformationsErr)
|
||||
}
|
||||
}
|
||||
})
|
||||
|
Reference in New Issue
Block a user