From 34342b9a972a3a454b979dc64d0a510c5af24894 Mon Sep 17 00:00:00 2001 From: Petr Vobornik Date: Thu, 22 Aug 2013 13:48:44 +0200 Subject: Show human-readable error name in error dialog title Fixes RPC server's JSON encoding of exception's name. It allows to show the name in Web UI's error dialog title. --- install/ui/src/freeipa/ipa.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'install/ui/src') diff --git a/install/ui/src/freeipa/ipa.js b/install/ui/src/freeipa/ipa.js index 8d54b66e..0e9fdefb 100644 --- a/install/ui/src/freeipa/ipa.js +++ b/install/ui/src/freeipa/ipa.js @@ -733,7 +733,8 @@ IPA.command = function(spec) { } else if (data.error) { // error_handler() calls IPA.hide_activity_icon() error_handler.call(this, xhr, text_status, /* error_thrown */ { - name: text.get('@i18n:errors.ipa_error', 'IPA Error')+' '+data.error.code, + name: text.get('@i18n:errors.ipa_error', 'IPA Error') + ' ' + + data.error.code + ': ' + data.error.name, code: data.error.code, message: data.error.message, data: data -- cgit