);
if ($result->exitcode === 0) {
$vals = [];
- if (!empty($jobname) && in_array($jobname, $result->output)) {
- $vals = [$jobname];
+ if (!empty($jobname)) {
+ if (in_array($jobname, $result->output)) {
+ $vals = [$jobname];
+ } else {
+ $this->output = JobError::MSG_ERROR_JOB_DOES_NOT_EXISTS;
+ $this->error = JobError::ERROR_JOB_DOES_NOT_EXISTS;
+ return;
+ }
} else {
$vals = $result->output;
}
"error": {
"type": "integer",
"description": "Error code",
- "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 1000]
+ "enum": [0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 50, 1000]
}
}
}