Skip to content

Commit

Permalink
Do not panic on gallery render error (mrdoob#76)
Browse files Browse the repository at this point in the history
Fixes mrdoob#73
  • Loading branch information
jfontan authored Oct 1, 2021
1 parent f6b1ecc commit 96cc499
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,11 +287,7 @@ func (s *Server) indexRender(c echo.Context, admin bool) error {
Admin: admin,
}

err = c.Render(http.StatusOK, "gallery", d)
if err != nil {
panic(err)
}
return err
return c.Render(http.StatusOK, "gallery", d)
}

func (s *Server) effectHandler(c echo.Context) error {
Expand Down

0 comments on commit 96cc499

Please sign in to comment.