Преглед изворни кода

exception_error: support objects in ext_info

Andrew Dolgov пре 10 година
родитељ
комит
2f7918ae2e
1 измењених фајлова са 2 додато и 0 уклоњено
  1. 2 0
      js/functions.js

+ 2 - 0
js/functions.js

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