Commit 3a0b536a by zhengqiuyun86

初始化

parent 3e90d181
...@@ -61,3 +61,10 @@ func ThrowsErrS(err string) { ...@@ -61,3 +61,10 @@ func ThrowsErrS(err string) {
panic(DError{Err: err}) panic(DError{Err: err})
} }
} }
func AssertThrowable(throwable bool, err string) {
if throwable {
log.Error(err)
panic(DError{Err: err})
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment