Better error message

This commit is contained in:
Florent 2012-09-25 15:53:14 +02:00 committed by Romain Bignon
commit 52493ca98b
2 changed files with 1 additions and 3 deletions

View file

@ -146,7 +146,7 @@ class Ing(BaseBrowser):
self.page.transfer(recipient, amount, reason)
self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf')
if not self.is_on_page(TransferConfirmPage):
raise TransferError("Recipient not found")
raise TransferError("Invalid transfer (no confirmation page)")
else:
self.page.confirm(self.password)
self.location('/protected/pages/cc/transfer/create/transferCreateValidation.jsf')