From e126fe6a68887030e1e6e9c1be40c2596b145816 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Fri, 14 Mar 2014 15:14:13 +0400 Subject: [PATCH] exception_error: always stringify ext_info --- js/functions.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/js/functions.js b/js/functions.js index 46ab7a58..aa840382 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", { -- 2.39.5