test fixup

This commit is contained in:
adman
2026-03-20 17:57:03 +01:00
parent 43fea40d08
commit 29baf8da9f
6 changed files with 57 additions and 4 deletions
+1 -1
View File
@@ -90,7 +90,7 @@ func (l *Loop) RegisterCustomType(eventType reflect.Type, hv reflect.Value) {
handleFunc := func(packet any) error {
v := hv.Call([]reflect.Value{reflect.ValueOf(packet)})[0]
if !v.IsNil() {
slog.Error("handler failed", v.Interface().(error))
slog.Error("handler failed", "err", v.Interface().(error))
}
return nil
}