mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03:00
commands: Don't fail on template errors on go mod graph etc.
Fixes #8942
This commit is contained in:
parent
04b5959961
commit
7d1f806ecb
12 changed files with 45 additions and 27 deletions
|
@ -165,7 +165,7 @@ Complete documentation is available at http://gohugo.io/.`,
|
|||
// prevent cobra printing error so it can be handled here (before the timeTrack prints)
|
||||
cmd.SilenceErrors = true
|
||||
|
||||
c, err := initializeConfig(true, cc.buildWatch, &cc.hugoBuilderCommon, cc, cfgInit)
|
||||
c, err := initializeConfig(true, true, cc.buildWatch, &cc.hugoBuilderCommon, cc, cfgInit)
|
||||
if err != nil {
|
||||
cmd.PrintErrln("Error:", err.Error())
|
||||
return err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue