hibiscus/internal/server/util/handle.go

12 lines
236 B
Go
Raw Permalink Normal View History

2024-10-23 14:11:02 +03:00
package util
import "log/slog"
// HandleWrite "handles" error in output of ResponseWriter.Write.
// Much useful very wow.
func HandleWrite(_ int, err error) {
if err != nil {
slog.Error("error writing response", "error", err)
}
}