mirror of
https://github.com/gohugoio/hugo.git
synced 2024-05-11 05:54:58 +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:
3
main.go
3
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 {
|
||||
|
Reference in New Issue
Block a user