diff options
author | Bjørn Erik Pedersen <[email protected]> | 2018-05-23 10:03:11 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2018-05-23 10:03:11 +0200 |
commit | 35ccf06daeaf86176c1341dde4207c3b11653d7a (patch) | |
tree | 1191bc00ec7452cea7b399ed9906254b2d57c729 /commands | |
parent | 4ddcf52ccc7af3e23109ebaac1f0486087a212ba (diff) | |
download | hugo-35ccf06daeaf86176c1341dde4207c3b11653d7a.tar.gz hugo-35ccf06daeaf86176c1341dde4207c3b11653d7a.zip |
Fix some recently broken embedded templates
And add tests for them.
Fixes #4757
Diffstat (limited to 'commands')
-rw-r--r-- | commands/hugo.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/commands/hugo.go b/commands/hugo.go index e2d447768..b898a9b7b 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -84,11 +84,11 @@ func Execute(args []string) Response { } if err == nil { - errCount := jww.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) + errCount := int(jww.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError)) if errCount > 0 { err = fmt.Errorf("logged %d errors", errCount) } else if resp.Result != nil { - errCount = resp.Result.Log.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) + errCount = resp.Result.NumLogErrors() if errCount > 0 { err = fmt.Errorf("logged %d errors", errCount) } |