style(backend): lowercase error messages across handlers

Normalize error message casing to lowercase for consistency across auth, bookings, services, customer relationship, and profile handlers.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-06-12 10:50:43 +01:00
co-authored by Sisyphus
parent b36d8aded8
commit e7fd9c89eb
5 changed files with 13 additions and 15 deletions
+2 -4
View File
@@ -14,7 +14,6 @@ import (
"fmt"
"log"
"net/http"
"net/mail"
"regexp"
"strings"
"sync"
@@ -136,9 +135,8 @@ func RegisterHandler(w http.ResponseWriter, r *http.Request) {
}
// Validate email format
_, err := mail.ParseAddress(req.Email)
if err != nil {
http.Error(w, "invalid email format", http.StatusBadRequest)
if err := validators.ValidateEmail(req.Email); err != nil {
http.Error(w, err.Error(), http.StatusBadRequest)
return
}