hibiscus/internal/server/util/handle.go
2024-10-23 14:11:02 +03:00

11 lines
236 B
Go

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)
}
}