projects
/
brevno-suite
/
hugo
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6c8e7ed
)
Return an error (other than 0) when ./hugo fails
author
Noah Campbell
<noahcampbell@gmail.com>
Sun, 1 Sep 2013 18:39:32 +0000
(11:39 -0700)
committer
Noah Campbell
<noahcampbell@gmail.com>
Sun, 1 Sep 2013 18:39:32 +0000
(11:39 -0700)
Being a good OS citizen so folks can compose hugo into their tool chain.
Also helps with git bisect run.
main.go
patch
|
blob
|
history
diff --git
a/main.go
b/main.go
index 8ff08f7fce566ea41f6b5c2ca152bf3567916771..5f421c483d1e292e617c6d6c60d7da8c15ea4d8e 100644
(file)
--- 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 {