From ec703a39738fefb60817f5659f76f8e683f8d301 Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 5 Oct 2026 17:39:06 -0400 Subject: fix: admin undo/redo failure, video poker cabinet ids, room ref behavior --- internal/admin/server.go | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'internal/admin/server.go') diff --git a/internal/admin/server.go b/internal/admin/server.go index 8fcba77..800cfa1 100644 --- a/internal/admin/server.go +++ b/internal/admin/server.go @@ -908,6 +908,10 @@ func (s *AdminServer) doUndo(w http.ResponseWriter, r *http.Request) { } change := s.undoStack.Undo() if change == nil { + if err := s.undoStack.LastError(); err != nil { + writeJSONError(w, "undo failed: "+err.Error(), http.StatusInternalServerError) + return + } writeJSON(w, map[string]any{"message": "Nothing to undo"}) return } @@ -927,6 +931,10 @@ func (s *AdminServer) doRedo(w http.ResponseWriter, r *http.Request) { } change := s.undoStack.Redo() if change == nil { + if err := s.undoStack.LastError(); err != nil { + writeJSONError(w, "redo failed: "+err.Error(), http.StatusInternalServerError) + return + } writeJSON(w, map[string]any{"message": "Nothing to redo"}) return } -- cgit v1.2.3