* Optimize the error message.

This commit is contained in:
dingguodong
2024-05-20 15:31:20 +08:00
committed by caoyanyi
parent 1530a5a17a
commit 6bdea378fd
+1 -1
View File
@@ -425,6 +425,6 @@ class job extends control
public function ajaxImportJobs(string|int $repoID)
{
if($this->job->import($repoID)) $this->sendSuccess();
$this->sendError('fail');
$this->sendError(dao::isError() ? dao::getError() : 'fail');
}
}