modify reason: Unresolved reference 'err' (#352)

This commit is contained in:
markcheney1
2017-05-17 20:14:58 -05:00
committed by 无闻
parent 5fa6370f3d
commit 913e2f042b

View File

@@ -34,7 +34,7 @@ func check(err error) { if err != nil { panic(err) } }
func errorHandler(fn fType1) fType1 {
return func(a type1, b type2) {
defer func() {
if e, ok := recover().(error); ok {
if err, ok := recover().(error); ok {
log.Printf(run time panic: %v, err)
}
}()