cleaning up the error message

This commit is contained in:
Luke Robles 2020-06-20 15:44:39 -07:00
parent e6ec50f00d
commit 5e7ced4522

View File

@ -35,5 +35,5 @@ def parse_message(message):
number_to_add = int(message.split('+')[-1])
return roll(message.split('d')[0], message.split('d')[1].split('+')[0], number_to_add)
except ValueError:
return "Could not add %s to the total roll"
return "Could not add that number to the total roll"
return roll(message.split('d')[0], message.split('d')[1])