summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2014-03-14 15:14:13 +0400
committerAndrew Dolgov <[email protected]>2014-03-14 15:14:13 +0400
commite126fe6a68887030e1e6e9c1be40c2596b145816 (patch)
treeafc7781bbc27af87408a662c31daeb925bd7940d /js
parentfb3a2505ac9b6def97b87c08aa0135aa51f04873 (diff)
exception_error: always stringify ext_info
Diffstat (limited to 'js')
-rw-r--r--js/functions.js9
1 files changed, 2 insertions, 7 deletions
diff --git a/js/functions.js b/js/functions.js
index 46ab7a584..aa840382c 100644
--- a/js/functions.js
+++ b/js/functions.js
@@ -44,13 +44,8 @@ function exception_error(location, e, ext_info) {
try {
- if (ext_info) {
- if (ext_info.responseText) {
- ext_info = ext_info.responseText;
- } else {
- ext_info = JSON.stringify(ext_info);
- }
- }
+ if (ext_info)
+ ext_info = JSON.stringify(ext_info);
try {
new Ajax.Request("backend.php", {