mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-13 10:46:17 -04:00
parent
2bea9d0ca1
commit
9262c5b32f
9
main.go
9
main.go
@ -16,9 +16,10 @@ package main
|
||||
import (
|
||||
"runtime"
|
||||
|
||||
"os"
|
||||
|
||||
"github.com/spf13/hugo/commands"
|
||||
jww "github.com/spf13/jwalterweatherman"
|
||||
"os"
|
||||
)
|
||||
|
||||
func main() {
|
||||
@ -28,4 +29,10 @@ func main() {
|
||||
if jww.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) > 0 {
|
||||
os.Exit(-1)
|
||||
}
|
||||
|
||||
if commands.Hugo != nil {
|
||||
if commands.Hugo.Log.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) > 0 {
|
||||
os.Exit(-1)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user