improve error logging

This commit is contained in:
Henrique Dias
2016-02-20 08:46:48 +00:00
parent 7ebdadbbab
commit 01e1715bc7
5 changed files with 6 additions and 12 deletions

View File

@@ -172,7 +172,7 @@ func Run(c *config.Config) {
viper.Reset()
commands.HugoCmd.ParseFlags(c.Args)
if err := commands.HugoCmd.RunE(nil, nil); err != nil {
log.Print(err)
log.Panic(err)
}
}