Add missing error handling when collecting service entries in admin
This commit is contained in:
parent
c3c349fadf
commit
f24f69bbbd
|
@ -133,6 +133,9 @@ func serveServicesIndex(w http.ResponseWriter, r *http.Request, user *auth.User,
|
||||||
panic(err)
|
panic(err)
|
||||||
}
|
}
|
||||||
services, err := collectServiceEntries(r.Context(), company, conn)
|
services, err := collectServiceEntries(r.Context(), company, conn)
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
page := &servicesIndex{
|
page := &servicesIndex{
|
||||||
Services: services,
|
Services: services,
|
||||||
Slides: slides,
|
Slides: slides,
|
||||||
|
|
Loading…
Reference in New Issue