We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c60c4b0 commit 0336b53Copy full SHA for 0336b53
wechaty/plugin.go
@@ -53,7 +53,7 @@ func (p *Plugin) registerPluginEvent(wechaty *Wechaty) {
53
if err := recover(); err != nil {
54
log.Println("panic: ", err)
55
log.Println(string(debug.Stack()))
56
- wechaty.events.Emit(schemas.PuppetEventNameError, fmt.Errorf("panic: event %s %v", pluginEvent.name, err))
+ wechaty.events.Emit(schemas.PuppetEventNameError, NewContext(), fmt.Errorf("panic: event %s %v", pluginEvent.name, err))
57
}
58
}()
59
values := make([]reflect.Value, 0, len(data))
0 commit comments