diff --git a/event.go b/event.go index d8290c2..b7fc703 100644 --- a/event.go +++ b/event.go @@ -136,7 +136,7 @@ func AddChild(event Event, child Event, info EventInfo) error { if child.Parent() != nil { child.UnlockParent() event.UnlockParent() - return errors.New(fmt.Sprintf("Parent already registered: %s->%s already %s", child.Name(), event.Name(), event.Parent().Name())) + return errors.New(fmt.Sprintf("Parent already registered: %s->%s already %s", child.Name(), event.Name(), child.Parent().Name())) } event.LockChildren()