Commit b18921cd by Torkel Ödegaard

Merge pull request #2244 from Dieterbe/saymynamesaymyname

clarify which handler is not found
parents c776db54 194273a6
package bus
import (
"errors"
"fmt"
"reflect"
)
......@@ -39,7 +39,7 @@ func (b *InProcBus) Dispatch(msg Msg) error {
var handler = b.handlers[msgName]
if handler == nil {
return errors.New("handler not found")
return fmt.Errorf("handler not found for %s", msgName)
}
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