You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@griffin.apache.org by gu...@apache.org on 2018/09/27 09:28:19 UTC

incubator-griffin git commit: Adjust error msg when failing to create job

Repository: incubator-griffin
Updated Branches:
  refs/heads/master de578bc88 -> 485c5cfc7


Adjust error msg when failing to create job

Author: Li, Juan <su...@gmail.com>

Closes #423 from icesmartjuan/ui_createJobFailure_msg.


Project: http://git-wip-us.apache.org/repos/asf/incubator-griffin/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-griffin/commit/485c5cfc
Tree: http://git-wip-us.apache.org/repos/asf/incubator-griffin/tree/485c5cfc
Diff: http://git-wip-us.apache.org/repos/asf/incubator-griffin/diff/485c5cfc

Branch: refs/heads/master
Commit: 485c5cfc79b84b7b63f49f7f6f3019f322229037
Parents: de578bc
Author: Li, Juan <su...@gmail.com>
Authored: Thu Sep 27 17:28:04 2018 +0800
Committer: William Guo <gu...@apache.org>
Committed: Thu Sep 27 17:28:04 2018 +0800

----------------------------------------------------------------------
 ui/angular/src/app/job/create-job/batch/batch.component.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-griffin/blob/485c5cfc/ui/angular/src/app/job/create-job/batch/batch.component.ts
----------------------------------------------------------------------
diff --git a/ui/angular/src/app/job/create-job/batch/batch.component.ts b/ui/angular/src/app/job/create-job/batch/batch.component.ts
index 1e2a4b2..b8f0100 100644
--- a/ui/angular/src/app/job/create-job/batch/batch.component.ts
+++ b/ui/angular/src/app/job/create-job/batch/batch.component.ts
@@ -202,7 +202,7 @@ export class BatchComponent implements OnInit, AfterViewChecked {
         if (response.code === '40004') {
           this.toasterService.pop("error", "Error!", "Job name already exists!");
         } else {
-          this.toasterService.pop("error", "Error!", "Error when creating job");
+          this.toasterService.pop("error", "Error!", response.message);
         }
         console.log("Error when creating job");
       }