diff options
author | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-10-22 17:42:06 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2018-10-22 20:46:14 +0200 |
commit | 2bf686ee217808186385bfcf6156f15bbdb33651 (patch) | |
tree | 6184e03782e693209828af09fef213d9a8309dcb /commands/hugo.go | |
parent | 9f74dc2a52b6f568b5a060b7a4be47196804b01f (diff) |
hugolib: Improve errors in /i18n handlling
See #5324
Diffstat (limited to 'commands/hugo.go')
-rw-r--r-- | commands/hugo.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index 2204ae9f3..acc48539d 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -620,7 +620,9 @@ func (c *commandeer) buildSites() (err error) { func (c *commandeer) handleBuildErr(err error, msg string) { c.buildErr = err - c.logger.ERROR.Printf("%s: %s", msg, err) + + c.logger.ERROR.Print(msg + ":\n\n") + c.logger.ERROR.Println(helpers.FirstUpper(err.Error())) if !c.h.quiet && c.h.verbose { herrors.PrintStackTrace(err) } |