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:
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)
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue