Not found error for public group
This commit is contained in:
parent
1ad2b3e097
commit
a2cd38617a
|
|
@ -67,6 +67,9 @@ func PublicGroup(s *response.Session, h http.Header, r *http.Request) rsvp.Respo
|
||||||
log.Printf("Couldn't get group: %s\n", err)
|
log.Printf("Couldn't get group: %s\n", err)
|
||||||
return response.Error(http.StatusInternalServerError, "An error occurred while fetching this group :(")
|
return response.Error(http.StatusInternalServerError, "An error occurred while fetching this group :(")
|
||||||
}
|
}
|
||||||
|
if group == nil {
|
||||||
|
return response.Error(http.StatusNotFound, "Group not found")
|
||||||
|
}
|
||||||
p := GroupProps{
|
p := GroupProps{
|
||||||
Group: group,
|
Group: group,
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue