# HG changeset patch # User Florian Zeitz # Date 1361314430 -3600 # Node ID 1d03dc7cf28f20f49683b904f400d50121055b39 # Parent fa996cfec6da19bc470fe27063cd63e36ab2c533 mod_admin_web: Better error reporting diff -r fa996cfec6da -r 1d03dc7cf28f mod_admin_web/admin_web/www_files/js/main.js --- a/mod_admin_web/admin_web/www_files/js/main.js Tue Feb 19 23:51:28 2013 +0100 +++ b/mod_admin_web/admin_web/www_files/js/main.js Tue Feb 19 23:53:50 2013 +0100 @@ -96,6 +96,7 @@ if (status == Strophe.Status.CONNECTING) { log('Strophe is connecting.'); } else if (status == Strophe.Status.CONNFAIL) { + alert('Connection failed (Wrong host?)'); log('Strophe failed to connect.'); showConnect(); } else if (status == Strophe.Status.DISCONNECTING) { @@ -104,6 +105,7 @@ log('Strophe is disconnected.'); showConnect(); } else if (status == Strophe.Status.AUTHFAIL) { + alert('Wrong username and/or password'); log('Authentication failed'); if (connection) { connection.disconnect();