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'); } }