Changeset

915:1d03dc7cf28f

mod_admin_web: Better error reporting
author Florian Zeitz <florob@babelmonkeys.de>
date Tue, 19 Feb 2013 23:53:50 +0100
parents 914:fa996cfec6da
children 916:9c5573b389c0
files mod_admin_web/admin_web/www_files/js/main.js
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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();