You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by se...@apache.org on 2016/11/05 01:14:33 UTC

incubator-ponymail git commit: Ensure that other errors are reported

Repository: incubator-ponymail
Updated Branches:
  refs/heads/master 54774eba0 -> c15c29179


Ensure that other errors are reported

Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/c15c2917
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/c15c2917
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/c15c2917

Branch: refs/heads/master
Commit: c15c2917959dde8870b81147c8fe542ce5c65f1e
Parents: 54774eb
Author: Sebb <se...@apache.org>
Authored: Sat Nov 5 01:14:18 2016 +0000
Committer: Sebb <se...@apache.org>
Committed: Sat Nov 5 01:14:18 2016 +0000

----------------------------------------------------------------------
 site/js/oauth.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/c15c2917/site/js/oauth.js
----------------------------------------------------------------------
diff --git a/site/js/oauth.js b/site/js/oauth.js
index a01d2fe..89eb30c 100644
--- a/site/js/oauth.js
+++ b/site/js/oauth.js
@@ -42,6 +42,8 @@ function GetAsync(theUrl, xstate, callback) {
         }
         if (xmlHttp.readyState == 4 && xmlHttp.status == 404) {
             alert("404'ed: " + theUrl)
+        } else if (xmlHttp.readyState >= 4 && xmlHttp.status >= 400) {
+            popup("Internal Server Error", "Sorry, the request failed. The server responded with: <pre>" + xmlHttp.responseText + "</pre>", 20)
         }
     }
 }