diff --git a/golibs/bait/bait.go b/golibs/bait/bait.go index 021710e..55fc2d3 100644 --- a/golibs/bait/bait.go +++ b/golibs/bait/bait.go @@ -30,6 +30,6 @@ func (b *Bait) throw(name string, args ...interface{}) { b.Em.Emit(name, args...) } -func (b *Bait) catch(name string, catcher func(interface{})) { +func (b *Bait) catch(name string, catcher func(...interface{})) { b.Em.On(name, catcher) }