From 48e1068e3e7082615df462c1df186e6045f3ca45 Mon Sep 17 00:00:00 2001 From: spf13 Date: Mon, 30 Sep 2013 22:40:15 -0400 Subject: [PATCH] fixed #85 --- commands/hugo.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/commands/hugo.go b/commands/hugo.go index 05bce1995..21f4f0f90 100644 --- a/commands/hugo.go +++ b/commands/hugo.go @@ -45,7 +45,10 @@ var Source, Destination, BaseUrl, CfgFile string func Execute() { AddCommands() Hugo := HugoCmd.ToCommander() - Hugo.Execute() + err := Hugo.Execute() + if err != nil { + os.Exit(-1) + } } func AddCommands() {