use log.Fatal instead of panic

This commit is contained in:
1138-4EB
2019-01-06 22:06:56 +01:00
parent b4708348c6
commit 7a775c42a1

View File

@@ -19,8 +19,7 @@ import (
func checkErr(err error) {
if err != nil {
fmt.Println(err)
os.Exit(1)
log.Fatal(err)
}
}