use log.Fatal instead of panic
parent
b4708348c6
commit
7a775c42a1
|
@ -19,8 +19,7 @@ import (
|
|||
|
||||
func checkErr(err error) {
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
os.Exit(1)
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue