소스 검색

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

Romain Rigaux 9 년 전
부모
커밋
feeb7819db
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');
       });
     };