X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/099468843d687fdc8c6fbb0f0e3dc54f59d0de15..79b9d798b16384d7429124ab99ff5bf54ec36411:/src/store/workbench/workbench-actions.ts diff --git a/src/store/workbench/workbench-actions.ts b/src/store/workbench/workbench-actions.ts index b03400d5..72b818fd 100644 --- a/src/store/workbench/workbench-actions.ts +++ b/src/store/workbench/workbench-actions.ts @@ -109,6 +109,12 @@ export const isWorkbenchLoading = (state: RootState) => { export const handleFirstTimeLoad = (action: any) => async (dispatch: Dispatch, 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)); @@ -328,7 +334,7 @@ export const moveProject = } catch (e) { dispatch( snackbarActions.OPEN_SNACKBAR({ - message: e.message, + message: !!(project as any).frozenByUuid ? 'Could not move frozen project.' : e.message, hideDuration: 2000, kind: SnackbarKind.ERROR, })