diff --git a/src/app/tes.service.ts b/src/app/tes.service.ts
index 0efdf8bd5851632195afe7d0811f403b768aa8bd..e6cb971d12bcae34a91da4581eddc90cfbed0750 100644
--- a/src/app/tes.service.ts
+++ b/src/app/tes.service.ts
@@ -169,21 +169,34 @@ private addUserHealth(identity,resp) {
 
  submissionError(error: any) {
    if (error.status != 0) {
-       if ('error' in error && 'message' in error.error) {
+       try {
+         this.notifications.notify(error.error.message);
+       } catch {
+         this.notifications.notify('Job Canceling failed');
+         console.error(error);
+       }
+       /*if ('error' in error && 'message' in error.error) {
          this.notifications.notify(error.error.message);
        } else {
          this.notifications.notify('Job submission failed');
-       }
+       }*/
    }
  }
 
  cancelError(error: any) {
    if (error.status != 0) {
-       if ('error' in error && 'message' in error.error) {
+       try {
          this.notifications.notify(error.error.message);
-       } else {
+       } catch {
          this.notifications.notify('Job Canceling failed');
+         console.error(error);
        }
+
+       /*if ('error' in error && 'message' in error.error) {
+         this.notifications.notify(error.error.message);
+       } else {
+         this.notifications.notify('Job Canceling failed');
+       }*/
    }
  }