mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-29 15:10:35 +03:00
simplified buildSite & better error handling around it
This commit is contained in:
parent
0318f7c149
commit
f5fda80486
4 changed files with 12 additions and 14 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue