[fusion-commits] r2862 - in trunk: lib text
svn_fusion at osgeo.org
svn_fusion at osgeo.org
Wed Jul 9 19:24:22 PDT 2014
Author: jng
Date: 2014-07-09 19:24:21 -0700 (Wed, 09 Jul 2014)
New Revision: 2862
Modified:
trunk/lib/fusion.js
trunk/text/en.json
Log:
#621: Preserve inner stack trace (if possible) when reporting back unhandled AJAX errors.
Modified: trunk/lib/fusion.js
===================================================================
--- trunk/lib/fusion.js 2014-07-04 03:04:34 UTC (rev 2861)
+++ trunk/lib/fusion.js 2014-07-10 02:24:21 UTC (rev 2862)
@@ -751,7 +751,8 @@
throw new Error(OpenLayers.i18n('ajaxError', {'exception':e.message,
'filename':e.fileName,
'line':e.lineNumber,
- 'response': r.transport.responseText
+ 'response': r.transport.responseText,
+ 'innerStack': e.stack || '',
}));
} catch (e) {
TraceKit.report(e);
Modified: trunk/text/en.json
===================================================================
--- trunk/text/en.json 2014-07-04 03:04:34 UTC (rev 2861)
+++ trunk/text/en.json 2014-07-10 02:24:21 UTC (rev 2862)
@@ -8,7 +8,7 @@
'sessionExpired': 'Your current MapGuide session has expired',
'reload': 'Reload this application',
'createSessionFailure': 'Failed to create session: ${message}',
-'ajaxError': 'Exception occurred in AJAX callback.\nMessage: ${exception}\nLocation: ${filename} (${line})\nResponse: ${response}',
+'ajaxError': 'Exception occurred in AJAX callback.\nMessage: ${exception}\nLocation: ${filename} (${line})\nInner Stack: ${innerStack}\nResponse: ${response}',
'detailedErrorTemplateHtml': '<h3>${name}</h3><br/>Error Details:<pre>${message}</pre><br/>Stack Trace:<br/><pre>${stacktrace}</pre><br/>Source: <pre>${source}</pre>',
'importFailed': 'failed to import stylesheet: ${url}',
'serverNotAvailable': '<h2>Server not available. Try to reload the application. If this problem persists, please contact the administrator</h2>',
More information about the fusion-commits
mailing list