exception_error: support objects in ext_info

This commit is contained in:
Andrew Dolgov 2014-03-14 14:49:18 +04:00
parent cde449b937
commit 2f7918ae2e
1 changed files with 2 additions and 0 deletions

View File

@ -47,6 +47,8 @@ function exception_error(location, e, ext_info) {
if (ext_info) { if (ext_info) {
if (ext_info.responseText) { if (ext_info.responseText) {
ext_info = ext_info.responseText; ext_info = ext_info.responseText;
} else {
ext_info = JSON.stringify(ext_info);
} }
} }