diff options
Diffstat (limited to 'ipalib/rpc.py')
-rw-r--r-- | ipalib/rpc.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ipalib/rpc.py b/ipalib/rpc.py index 55b8abb8d..16db33168 100644 --- a/ipalib/rpc.py +++ b/ipalib/rpc.py @@ -1097,7 +1097,9 @@ class JSONServerProxy(object): server=self.__host, ) else: - raise error_class(message=error['message']) + kw = error.get('data', {}) + kw['message'] = error['message'] + raise error_class(**kw) return response['result'] |