From e126fe6a68887030e1e6e9c1be40c2596b145816 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 14 Mar 2014 15:14:13 +0400 Subject: exception_error: always stringify ext_info --- js/functions.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'js/functions.js') 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", { -- cgit v1.2.3