[fusion-commits] r2016 - trunk/lib
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Fri Dec 11 03:53:42 EST 2009
Author: christinebao
Date: 2009-12-11 03:53:39 -0500 (Fri, 11 Dec 2009)
New Revision: 2016
Modified:
trunk/lib/fusion.js
Log:
Fix ticket http://trac.osgeo.org/fusion/ticket/304
unknown error when zoom with disconnected server connection
Modified: trunk/lib/fusion.js
===================================================================
--- trunk/lib/fusion.js 2009-12-11 08:20:51 UTC (rev 2015)
+++ trunk/lib/fusion.js 2009-12-11 08:53:39 UTC (rev 2016)
@@ -646,8 +646,12 @@
callback(o);
} else {
if (r.status >= 400) {
+ var msg = r.transport.responseText;
+ if (msg == "") {
+ msg = "<h2>MapGuide server not available. Try to reload the application. If this problem persists, please contact the administrator</h2>";
+ }
Fusion.reportError(new Fusion.Error(Fusion.Error.FATAL,
- 'xml2json: invalid XML document: ' + r.transport.responseText + " : " + r.request.url));
+ 'xml2json: invalid XML document: ' + msg + " : " + r.request.url));
return;
}
More information about the fusion-commits
mailing list