added Check Fatal Error func
This commit is contained in:
@@ -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)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user