Commit 194273a6 by Dieter Plaetinck

clarify which handler is not found

parent 20d5d0ee
package bus package bus
import ( import (
"errors" "fmt"
"reflect" "reflect"
) )
...@@ -39,7 +39,7 @@ func (b *InProcBus) Dispatch(msg Msg) error { ...@@ -39,7 +39,7 @@ func (b *InProcBus) Dispatch(msg Msg) error {
var handler = b.handlers[msgName] var handler = b.handlers[msgName]
if handler == nil { if handler == nil {
return errors.New("handler not found") return fmt.Errorf("handler not found for %s", msgName)
} }
var params = make([]reflect.Value, 1) var params = make([]reflect.Value, 1)
......
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