chore: fix tests
All checks were successful
Go / build (push) Successful in 15s
Release / publish (push) Successful in 1m5s

This commit is contained in:
2025-08-27 22:20:03 +02:00
parent a84994ffd1
commit 8180b38225
3 changed files with 14 additions and 18 deletions

View File

@@ -57,13 +57,13 @@ func (s sendReq) ToEMail() email.Mail {
func (s *Service) sendErrf(w http.ResponseWriter, statusCode int, format string, a ...any) {
msg := fmt.Sprintf(format, a...)
s.log.Error(msg, slog.Any("statusCode", statusCode))
w.Write([]byte(msg))
w.WriteHeader(statusCode)
w.Write([]byte(msg))
}
func (s *Service) sendErr(w http.ResponseWriter, statusCode int, a ...any) {
msg := fmt.Sprint(a...)
s.log.Error(msg, slog.Any("statusCode", statusCode))
w.Write([]byte(msg))
w.WriteHeader(statusCode)
w.Write([]byte(msg))
}