diff --git a/app/Controllers/EmployeeRestController.php b/app/Controllers/EmployeeRestController.php index 0cd0fdd..804af72 100755 --- a/app/Controllers/EmployeeRestController.php +++ b/app/Controllers/EmployeeRestController.php @@ -803,12 +803,9 @@ class EmployeeRestController extends AdminController { if(isset($result['error_type'])){ $result = $empServiceController->getExcelErrorData($file_id); - return $this->respond(['status' => 'failed', 'code' => 404, 'message' => "file upload failed with errors",'data' => $result], 200); + return $this->respond(['status' => 'failed', 'code' => 404, 'message' => 'The data format is invalid. Click "Next" to view details.','data' => $result], 200); }else { - $message = "file upload failed with errors"; - if(isset($result['error_data'])){ - $message = $result['error_data']; - } + $message = "The import file is in an incorrect format. Please compare it with our template file to correct it."; return $this->respond(['status' => 'failed', 'code' => 404, 'message' => $message,'data' => $result], 200); } }