mirror of
https://github.com/jech/galene.git
synced 2024-11-22 00:25:58 +01:00
Use httpError in groupHandler.
This commit is contained in:
parent
03038eaf45
commit
a612e4d869
1 changed files with 1 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue