diff options
Diffstat (limited to 'src/game/GameModel.cpp')
| -rw-r--r-- | src/game/GameModel.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/game/GameModel.cpp b/src/game/GameModel.cpp index c897877..9505397 100644 --- a/src/game/GameModel.cpp +++ b/src/game/GameModel.cpp @@ -263,6 +263,10 @@ void GameModel::SetVote(int direction) currentSave->vote = direction; notifySaveChanged(); } + else + { + throw GameModelException("Could not vote: "+Client::Ref().GetLastError()); + } } } |
