mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-21 21:35:28 +02:00
commands, hugolib: Get file context in "config parse failed" errors
Fixes #5325
This commit is contained in:
@@ -662,9 +662,10 @@ func (c *commandeer) fullRebuild() {
|
||||
c.commandeerHugoState = &commandeerHugoState{}
|
||||
err := c.loadConfig(true, true)
|
||||
if err != nil {
|
||||
c.logger.ERROR.Println("Failed to reload config:", err)
|
||||
// Set the processing on pause until the state is recovered.
|
||||
c.paused = true
|
||||
c.handleBuildErr(err, "Failed to reload config")
|
||||
|
||||
} else {
|
||||
c.paused = false
|
||||
}
|
||||
|
Reference in New Issue
Block a user