mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-30 22:39:58 +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:
@@ -121,7 +121,7 @@ func (t *babelTransformation) Transform(ctx *resources.ResourceTransformationCtx
|
||||
logger := t.rs.Logger
|
||||
|
||||
var errBuf bytes.Buffer
|
||||
infoW := loggers.LoggerToWriterWithPrefix(logger.INFO, "babel")
|
||||
infoW := loggers.LoggerToWriterWithPrefix(logger.Info(), "babel")
|
||||
|
||||
if t.options.Config != "" {
|
||||
configFile = t.options.Config
|
||||
@@ -143,7 +143,7 @@ func (t *babelTransformation) Transform(ctx *resources.ResourceTransformationCtx
|
||||
var cmdArgs []string
|
||||
|
||||
if configFile != "" {
|
||||
logger.INFO.Println("babel: use config file", configFile)
|
||||
logger.Infoln("babel: use config file", configFile)
|
||||
cmdArgs = []string{"--config-file", configFile}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user