summaryrefslogtreecommitdiffstats
path: root/install/static/webui.js
diff options
context:
space:
mode:
authorEndi S. Dewata <edewata@redhat.com>2010-10-06 15:09:14 -0500
committerEndi Sukma Dewata <edewata@redhat.com>2010-10-06 21:30:55 -0400
commitde35a3e341dfe440febaf3cad80f8dde0a6da3a6 (patch)
tree253495d650bc005ff03b31eb36a8ec46439af431 /install/static/webui.js
parent127ff317cecc43ebb1f21c6a88bc4d4a7e64ea5b (diff)
downloadfreeipa-de35a3e341dfe440febaf3cad80f8dde0a6da3a6.tar.gz
freeipa-de35a3e341dfe440febaf3cad80f8dde0a6da3a6.tar.xz
freeipa-de35a3e341dfe440febaf3cad80f8dde0a6da3a6.zip
Displaying AJAX URL in error message.
The ipa_error_handler() has been modified to display the AJAX URL that is having a problem. The ipa_cmd() error handler is now invoked using call() to pass 'this' object which contains the URL.
Diffstat (limited to 'install/static/webui.js')
-rw-r--r--install/static/webui.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/install/static/webui.js b/install/static/webui.js
index fa37bcdd5..958095561 100644
--- a/install/static/webui.js
+++ b/install/static/webui.js
@@ -86,6 +86,7 @@ $(function() {
function init_on_error(xhr, text_status, error_thrown) {
var navigation = $('#navigation').empty();
navigation.append('<p>Error: '+error_thrown.name+'</p>');
+ navigation.append('<p>URL: '+this.url+'</p>');
navigation.append('<p>'+error_thrown.message+'</p>');
}