瀏覽代碼

HUE-6634 [importer] Provide error to user when Sentry permissions are missing

Romain Rigaux 8 年之前
父節點
當前提交
82aaeac
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      desktop/libs/indexer/src/indexer/templates/importer.mako

+ 1 - 1
desktop/libs/indexer/src/indexer/templates/importer.mako

@@ -1708,7 +1708,7 @@ ${ assist.assistPanel() }
           "destination": ko.mapping.toJSON(self.destination),
           "start_time": ko.mapping.toJSON((new Date()).getTime())
         }, function (resp) {
-          if (resp.history_uuid) {
+          if (resp.status == 0 && resp.history_uuid) {
             $.jHueNotify.info("${ _('Task submitted.') }");
             huePubSub.publish('notebook.task.submitted', resp.history_uuid);
           } else {