mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2025-02-25 18:55:28 -06:00
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.
This commit is contained in:
committed by
Petr Viktorin
parent
edf92f7650
commit
34342b9a97
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user