mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
simplified buildSite & better error handling around it
This commit is contained in:
@@ -14,7 +14,7 @@ func CheckErr(err error, s ...string) {
|
||||
}
|
||||
}
|
||||
|
||||
func CheckErrExit(err error, s ...string) {
|
||||
func StopOnErr(err error, s ...string) {
|
||||
if err != nil {
|
||||
CheckErr(err, s...)
|
||||
os.Exit(-1)
|
||||
|
Reference in New Issue
Block a user