diff --git a/app/services/user_service.rb b/app/services/user_service.rb index 990fc0a..f950f0e 100644 --- a/app/services/user_service.rb +++ b/app/services/user_service.rb @@ -19,7 +19,7 @@ class UserService raise UserServiceError, 'The given team is not involved in the given match' unless match.teams.include? team end raise UserServiceError, 'This user already created a bet on this match' if match.bets.map(&:user).include? @user - raise UserServiceError, "Betting is not supported while match is #{match.state}" \ + raise UserServiceError, "Betting is not allowed while match is #{match.state}" \ unless %w[not_ready not_started].include? match.state end end