1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Use httpError in groupHandler.

This commit is contained in:
Juliusz Chroboczek 2024-01-11 23:10:15 +01:00
parent 03038eaf45
commit a612e4d869

View file

@ -328,13 +328,7 @@ func groupHandler(w http.ResponseWriter, r *http.Request) {
g, err := group.Add(name, nil) g, err := group.Add(name, nil)
if err != nil { if err != nil {
if os.IsNotExist(err) { httpError(w, err)
notFound(w)
} else {
log.Printf("group.Add: %v", err)
http.Error(w, "Internal server error",
http.StatusInternalServerError)
}
return return
} }