You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/10/11 01:52:19 UTC

svn commit: r1707932 - /comdev/reporter.apache.org/trunk/site/render.js

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 :(")
 			}