1
Fork 0

Use httpError in groupHandler.

This commit is contained in:
Juliusz Chroboczek 2024-01-11 23:10:15 +01:00
parent 03038eaf45
commit a612e4d869
1 changed files with 1 additions and 7 deletions

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