From 6bdea378fd7372bd48249d71776af8cf2c2ff6cd Mon Sep 17 00:00:00 2001 From: dingguodong Date: Tue, 14 May 2024 14:13:18 +0800 Subject: [PATCH] * Optimize the error message. --- module/job/control.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/job/control.php b/module/job/control.php index 55f7f7e203..bd370e66d7 100644 --- a/module/job/control.php +++ b/module/job/control.php @@ -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'); } }