From 63a50bfae5314c29b07c5b778eaf65dba58b0f13 Mon Sep 17 00:00:00 2001 From: Henrique Dias Date: Sun, 13 Dec 2015 10:06:02 +0000 Subject: [PATCH] fix #34 --- utils/utils.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/utils/utils.go b/utils/utils.go index bbfa4515..b41c1356 100644 --- a/utils/utils.go +++ b/utils/utils.go @@ -175,8 +175,11 @@ func Run(c *config.Config) { viper.Reset() commands.HugoCmd.ParseFlags(c.Args) - // EXPERIENCE: using those args instead of nil, nil - commands.HugoCmd.Run(commands.HugoCmd, make([]string, 0)) + err = commands.HugoCmd.RunE(nil, nil) + + if err != nil { + log.Print(err) + } err = os.Chdir(cwd)