diff --git a/sse/sse.go b/sse/sse.go index 0a5f829b..edda12c5 100644 --- a/sse/sse.go +++ b/sse/sse.go @@ -160,7 +160,7 @@ func Register[I any](api huma.API, op huma.Operation, eventTypeMap map[string]an send := func(msg Message) error { if deadliner != nil { if err := deadliner.SetWriteDeadline(time.Now().Add(WriteTimeout)); err != nil { - fmt.Println("warning: unable to set write deadline: %w", err) + fmt.Println("warning: unable to set write deadline: " + err.Error()) } } else { fmt.Println("warning: unable to set write deadline")