diff options
author | Rob Crittenden <rcritten@redhat.com> | 2009-05-08 11:15:45 -0400 |
---|---|---|
committer | Rob Crittenden <rcritten@redhat.com> | 2009-05-13 14:16:44 -0400 |
commit | 1c31b5bc08a2f4bc55678c69eb67508122480906 (patch) | |
tree | 0166354ab5bb1e8bb4b664efab23bb86e770556a /ipalib/plugins/user2.py | |
parent | de88954b91f49387421f68a056a2e12cb6e94e7e (diff) | |
download | freeipa.git-1c31b5bc08a2f4bc55678c69eb67508122480906.tar.gz freeipa.git-1c31b5bc08a2f4bc55678c69eb67508122480906.tar.xz freeipa.git-1c31b5bc08a2f4bc55678c69eb67508122480906.zip |
Add a reason to the NotFound exception so we can provide more robust errors
Diffstat (limited to 'ipalib/plugins/user2.py')
-rw-r--r-- | ipalib/plugins/user2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ipalib/plugins/user2.py b/ipalib/plugins/user2.py index e65fe1d8..7fb6b0ff 100644 --- a/ipalib/plugins/user2.py +++ b/ipalib/plugins/user2.py @@ -148,7 +148,7 @@ class user2_create(crud.Create): (group_dn, group_attrs) = ldap.get_entry(group_dn, ['gidNumber']) except errors.NotFound: error_msg = 'Default group for new users not found.' - raise errors.NotFound(error_msg) + raise errors.NotFound(reason=error_msg) # fill default group's gidNumber entry_attrs['gidnumber'] = group_attrs['gidNumber'] |