Adjust error msg when failing to create job
Author: Li, Juan <sunshinejuanl@gmail.com>
Closes #423 from icesmartjuan/ui_createJobFailure_msg.
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 @@
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");
}