From 1c31b5bc08a2f4bc55678c69eb67508122480906 Mon Sep 17 00:00:00 2001 From: Rob Crittenden Date: Fri, 8 May 2009 11:15:45 -0400 Subject: Add a reason to the NotFound exception so we can provide more robust errors --- ipalib/plugins/dns2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipalib/plugins/dns2.py') diff --git a/ipalib/plugins/dns2.py b/ipalib/plugins/dns2.py index b478a5bc..35f9b698 100644 --- a/ipalib/plugins/dns2.py +++ b/ipalib/plugins/dns2.py @@ -597,7 +597,7 @@ class dns2_del_rr(Command): try: attr_value.remove(data) except ValueError: - raise errors.NotFound(message=u'resource record not found') + raise errors.NotFound(reason=u'resource record not found') # check if it's worth to keep this entry in LDAP if 'idnsZone' not in entry_attrs['objectclass']: -- cgit