浏览代码

HUE-3564 [editor] Check status can error an empty message

Romain Rigaux 9 年之前
父节点
当前提交
feeb781
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

+ 2 - 2
desktop/libs/notebook/src/notebook/static/notebook/js/notebook.ko.js

@@ -826,7 +826,7 @@
           self._ajaxError(data);
         }
       }).fail(function (xhr, textStatus, errorThrown) {
-        $(document).trigger("error", xhr.responseText);
+        $(document).trigger("error", xhr.responseText || textStatus);
         self.status('failed');
       });
     };
@@ -908,7 +908,7 @@
           self._ajaxError(data);
         }
       }).fail(function (xhr, textStatus, errorThrown) {
-        $(document).trigger("error", xhr.responseText);
+        $(document).trigger("error", xhr.responseText || textStatus);
         self.status('failed');
       });
     };