aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/admin/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/admin/handlers.go')
-rw-r--r--backend/admin/handlers.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/admin/handlers.go b/backend/admin/handlers.go
index d445de8..2a678d3 100644
--- a/backend/admin/handlers.go
+++ b/backend/admin/handlers.go
@@ -244,7 +244,10 @@ func (h *AdminHandler) postGameEdit(c echo.Context) error {
{
// TODO:
if state != row.State && state == "prepare" {
- h.hubs.StartGame(int(gameID))
+ err := h.hubs.StartGame(int(gameID))
+ if err != nil {
+ return echo.NewHTTPError(http.StatusInternalServerError, err.Error())
+ }
}
}