ponymail-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject incubator-ponymail git commit: Ensure that other errors are reported
Date Sat, 05 Nov 2016 01:14:33 GMT
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 <sebb@apache.org>
Authored: Sat Nov 5 01:14:18 2016 +0000
Committer: Sebb <sebb@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)
         }
     }
 }


Mime
View raw message