hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit b268e639baeb95b11e98a9595577ce7c356b5262
parent 6c8e7edbb42f9a4b5795f195cbf18c68674e9af4
Author: Noah Campbell <noahcampbell@gmail.com>
Date:   Sun,  1 Sep 2013 11:39:32 -0700

Return an error (other than 0) when ./hugo fails

Being a good OS citizen so folks can compose hugo into their tool chain.
Also helps with git bisect run.

Diffstat:
Mmain.go | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/main.go b/main.go
@@ -112,7 +112,7 @@ func main() {
 		_, err = buildSite(config)
 		if err != nil {
 			fmt.Println(err)
-			return
+			os.Exit(-1)
 		}
 		err := NewWatcher(config, *port, *server)
 		if err != nil {
@@ -122,6 +122,7 @@ func main() {
 
 	if _, err = buildSite(config); err != nil {
 		fmt.Println(err)
+		os.Exit(-1)
 	}
 
 	if *server {