From 838d06a67ec76233868edadce5a3799d3a5b5f00 Mon Sep 17 00:00:00 2001 From: pfelt Date: Mon, 8 Oct 2007 04:42:27 +0000 Subject: [PATCH] -- Commit on behalf of halex with new error outputting --- src/www/js/Login.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/www/js/Login.js b/src/www/js/Login.js index b1e1088..3687544 100644 --- a/src/www/js/Login.js +++ b/src/www/js/Login.js @@ -67,7 +67,10 @@ Dragonfly.login = function (user) } else if (err.req && (err.req.status == 401 || err.req.status == 403)) { // Only tell the user its their fault if we get a permission denied HTTP response. d.setLoginMessage (_('Incorrect username or password.')); - } else { + } else if (err.req && err.req.status == 200) + d.setLoginMessage (_('The server backend seems to be fubared. It might be useful to check your Apache logs to see what the symptom is. It is usually one of two things:')); + //logError ('backend was fubared and returned: ' + d.responseText); + } else { d.setLoginMessage (_('Some error occured while logging in - check the logs.')); logError ('login error: ' + d.reprError (err)); }