summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index f3b14d976..25b0f6e86 100644
--- a/main.go
+++ b/main.go
@@ -17,9 +17,15 @@ import (
"runtime"
"github.com/spf13/hugo/commands"
+ jww "github.com/spf13/jwalterweatherman"
+ "os"
)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
commands.Execute()
+
+ if jww.LogCountForLevelsGreaterThanorEqualTo(jww.LevelError) > 0 {
+ os.Exit(-1)
+ }
}