Przeglądaj źródła

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

Romain Rigaux 9 lat temu
rodzic
commit
feeb7819db

+ 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');
       });
     };