commit 48e1068e3e7082615df462c1df186e6045f3ca45
parent 8efb90ebd5ff0cf8d498ce78ec443ee01ea01a38
Author: spf13 <steve.francia@gmail.com>
Date: Mon, 30 Sep 2013 22:40:15 -0400
fixed #85
Diffstat:
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git 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() {