From 40045eaa35bbecefb8b5c544da6c91c3731f92b8 Mon Sep 17 00:00:00 2001 From: Aevann Date: Tue, 8 Aug 2023 20:02:47 +0300 Subject: [PATCH] better erro message --- files/helpers/slots.py | 2 +- files/routes/casino.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/helpers/slots.py b/files/helpers/slots.py index f2578e440..996b8aa13 100644 --- a/files/helpers/slots.py +++ b/files/helpers/slots.py @@ -152,7 +152,7 @@ def check_slots_command(c, v, u): if (currency == "coins" and wager > u.coins) or (currency == "marseybux" and wager > u.marseybux): if v.id == u.id: - abort(400, f"Not enough {currency} to make that bet") + abort(400, f"You don't have enough {currency} to make that bet!") return game_id, game_state = casino_slot_pull(u, wager, currency) diff --git a/files/routes/casino.py b/files/routes/casino.py index fba71dcc4..efd0a85be 100644 --- a/files/routes/casino.py +++ b/files/routes/casino.py @@ -101,7 +101,7 @@ def pull_slots(v): abort(400, "Invalid currency (expected 'coins' or 'marseybux').") if (currency == "coins" and wager > v.coins) or (currency == "marseybux" and wager > v.marseybux): - abort(400, f"Not enough {currency} to make that bet") + abort(400, f"You don't have enough {currency} to make that bet!") game_id, game_state = casino_slot_pull(v, wager, currency) success = bool(game_id)