use log.Fatal instead of panic

pull/618/head
1138-4EB 2019-01-06 22:06:56 +01:00
parent b4708348c6
commit 7a775c42a1
1 changed files with 1 additions and 2 deletions

View File

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