mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 12:14:49 +00:00
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.
This commit is contained in:
1 parent
6c8e7edbb4
commit
b268e639ba
1 file changed
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user