about summary refs log tree commit diff stats
path: root/main.go
diff options
context:
space:
mode:
authorBenny Morrison <benmorrison@ttm.sh>2019-03-17 01:41:55 -0400
committerBenny Morrison <benmorrison@ttm.sh>2019-03-17 01:41:55 -0400
commit340a6f8c5d90248db2073cecd598c0f70d8ab4cb (patch)
treeed018e2da1d4c777d5793143359dfa94bb9a55d0 /main.go
parent9f79e3a64ddce687bae1fceae43a5cc47802eb2f (diff)
downloadgoofbot-340a6f8c5d90248db2073cecd598c0f70d8ab4cb.tar.gz
add error check / panic function
Diffstat (limited to 'main.go')
-rw-r--r--main.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/main.go b/main.go
index f66628c..e8853cd 100644
--- a/main.go
+++ b/main.go
@@ -11,6 +11,12 @@ import (
 	"github.com/lrstanley/girc"
 )
 
+func checkerr(err error) {
+	if err != nil {
+		panic(err)
+	}
+}
+
 func main() {
 	//TODO:
 	//parse config.json into the following