added Check Fatal Error func

This commit is contained in:
2022-11-19 11:59:34 -05:00
parent 4d388313c9
commit 4db3de09b4

View File

@@ -178,3 +178,9 @@ func (ll LevelLogger) Blank(n int) {
} }
ll.blankLog.Print(outs) ll.blankLog.Print(outs)
} }
func (ll LevelLogger) CheckFerr(e error, msg string) {
if e != nil {
ll.Fatal(e, msg)
}
}