21067: Better handling of missing output/logs on process panel.
[arvados-workbench2.git] / src / store / workbench / workbench-actions.ts
index b03400d5ae28c7abc55b86ac5e0f01e99668e95a..f2dae2c524c3221daac423cfdca622feb0d8efb2 100644 (file)
@@ -109,6 +109,12 @@ export const isWorkbenchLoading = (state: RootState) => {
 export const handleFirstTimeLoad = (action: any) => async (dispatch: Dispatch<any>, getState: () => RootState) => {
     try {
         await dispatch(action);
+    } catch (e) {
+        snackbarActions.OPEN_SNACKBAR({
+            message: "Error " + e,
+            hideDuration: 8000,
+            kind: SnackbarKind.WARNING,
+        })
     } finally {
         if (isWorkbenchLoading(getState())) {
             dispatch(progressIndicatorActions.STOP_WORKING(WORKBENCH_LOADING_SCREEN));