From 2a650ff5fe32c533fe632e0953901eb9b3cb2aa1 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Sat, 31 Jan 2015 19:14:48 +0000 Subject: [PATCH] bookie: make an error more informative --- tipbot/modules/bookie.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tipbot/modules/bookie.py b/tipbot/modules/bookie.py index ca89c02..ea85205 100644 --- a/tipbot/modules/bookie.py +++ b/tipbot/modules/bookie.py @@ -289,7 +289,7 @@ def Bet(link,cmd): outcomes = redis_smembers(tname+':outcomes') if not outcome in outcomes: - link.send("%s is not a valid outcome, try one of: %s" % (outcome, ", ".join(outcomes))) + link.send("%s is not a valid outcome for %s, try one of: %s" % (outcome, book_name, ", ".join(outcomes))) return if redis_hexists(tname,identity+":outcome"): previous_outcome = redis_hget(tname,identity+":outcome")