simplified buildSite & better error handling around it

This commit is contained in:
spf13 2013-10-09 19:06:47 -04:00
parent 0318f7c149
commit f5fda80486
4 changed files with 12 additions and 14 deletions

View file

@ -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)