As per review commemnts:

- Add the assert to a test - oops.
- Fix typo in error message.
This commit is contained in:
Rebecca Law
2017-10-19 13:51:33 +01:00
parent 709e24e267
commit cee916c68a
3 changed files with 14 additions and 7 deletions

View File

@@ -108,4 +108,4 @@ def _reset_old_default_to_false(old_default):
def _raise_when_no_default(old_default):
# check that the update is not updating the only default to false
if not old_default:
raise Exception("You must have at least one letter contact as the default.", 400)
raise Exception("You must have at least one SMS sender as the default.", 400)