1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-12-22 07:15:47 +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)
if err != nil {
if os.IsNotExist(err) {
notFound(w)
} else {
log.Printf("group.Add: %v", err)
http.Error(w, "Internal server error",
http.StatusInternalServerError)
}
httpError(w, err)
return
}