瀏覽代碼

debug: Add console log to error catching for re run

jnfrati 4 年之前
父節點
當前提交
0a00f25aeb
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      dashboard/src/main/home/cluster-dashboard/expanded-chart/BuildSettingsTab.tsx

+ 2 - 0
dashboard/src/main/home/cluster-dashboard/expanded-chart/BuildSettingsTab.tsx

@@ -140,6 +140,7 @@ const BuildSettingsTab: React.FC<Props> = ({ chart }) => {
         }
       );
     } catch (error) {
+      console.log(error);
       if (!error?.response) {
         throw error;
       }
@@ -198,6 +199,7 @@ const BuildSettingsTab: React.FC<Props> = ({ chart }) => {
         setCurrentError(description);
         return;
       }
+      throw error;
     }
   };