[ARVADOS-WORKBENCH2] updated: 1.2.0-342-gdd99e8f

Git user git at public.curoverse.com
Mon Sep 10 06:05:39 EDT 2018


Summary of changes:
 src/store/processes/process-copy-actions.ts | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

       via  dd99e8f75ffc29170c7ec5f264773014ebc1c7d3 (commit)
      from  7486a3262490a384017ee6c826a408a017a79f55 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit dd99e8f75ffc29170c7ec5f264773014ebc1c7d3
Author: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>
Date:   Mon Sep 10 12:05:28 2018 +0200

    cr change
    
    Feature #14097
    
    Arvados-DCO-1.1-Signed-off-by: Pawel Kowalczyk <pawel.kowalczyk at contractors.roche.com>

diff --git a/src/store/processes/process-copy-actions.ts b/src/store/processes/process-copy-actions.ts
index a9ae64e..58132e9 100644
--- a/src/store/processes/process-copy-actions.ts
+++ b/src/store/processes/process-copy-actions.ts
@@ -11,6 +11,7 @@ import { ServiceRepository } from '~/services/services';
 import { CopyFormDialogData } from '~/store/copy-dialog/copy-dialog';
 import { getProcess, ProcessStatus, getProcessStatus } from '~/store/processes/process';
 import { snackbarActions } from '~/store/snackbar/snackbar-actions';
+import { getCommonResourceServiceError, CommonResourceServiceError } from '~/services/common-service/common-resource-service';
 
 export const PROCESS_COPY_FORM_NAME = 'processCopyFormName';
 
@@ -43,7 +44,8 @@ export const copyProcess = (resource: CopyFormDialogData) =>
             dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME }));
             return process;
         } catch (e) {
-            if (e) {
+            const error = getCommonResourceServiceError(e);
+            if (error === CommonResourceServiceError.UNKNOWN) {
                 dispatch(dialogActions.CLOSE_DIALOG({ id: PROCESS_COPY_FORM_NAME }));
                 throw new Error('Could not copy the process.');
             }

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list