community-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1707932 - /comdev/reporter.apache.org/trunk/site/render.js
Date Sat, 10 Oct 2015 23:52:19 GMT
Author: sebb
Date: Sat Oct 10 23:52:19 2015
New Revision: 1707932

URL: http://svn.apache.org/viewvc?rev=1707932&view=rev
Log:
Better handling of json responses

Modified:
    comdev/reporter.apache.org/trunk/site/render.js

Modified: comdev/reporter.apache.org/trunk/site/render.js
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/render.js?rev=1707932&r1=1707931&r2=1707932&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/render.js (original)
+++ comdev/reporter.apache.org/trunk/site/render.js Sat Oct 10 23:52:19 2015
@@ -983,6 +983,10 @@ function fetchJIRA(pmc, project, prepend
 				alert("Fetched " + n + " releases from JIRA!")
 				renderFrontPage(jsdata)
 
+            } else if (json && json.status){
+                alert(json.status)
+            } else if (json) {
+                alert(JSON.stringify(json))
 			} else {
 				alert("Couldn't find any release data :(")
 			}
@@ -1008,6 +1012,10 @@ function addRelease(pmc, version, date)
 				alert("Release added!")
 				renderFrontPage(jsdata)
 
+            } else if (json && json.status){
+                alert(json.status)
+            } else if (json) {
+                alert(JSON.stringify(json))
 			} else {
 				alert("Couldn't add release data :(")
 			}



Mime
View raw message