| branch | devel |
| changeset 116 | 48c70425bf6c |
| parent 110 | 601fc908d9f1 |
| child 125 | 19b3f383c9ce |
--- a/iro/error.py Fri Jan 27 17:49:57 2012 +0100 +++ b/iro/error.py Fri Jan 27 21:14:18 2012 +0100 @@ -23,7 +23,9 @@ def __init__(self, code=700, field=None, msg=None): self.code=code self.field=field - self.msg='Validation failed.' + self.msg = msg + if not msg: + self.msg='Validation failed.' if field and not msg: self.msg="Validation of '%s' failed."%field