From: Marcin Haba Date: Wed, 29 Mar 2023 14:47:57 +0000 (+0200) Subject: baculum: Add more detailed output to restore endpoint X-Git-Tag: Release-13.0.3~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3da736e70450b8ff89568e453b3938a67c1d26a4;p=thirdparty%2Fbacula.git baculum: Add more detailed output to restore endpoint --- diff --git a/gui/baculum/protected/API/Pages/API/RestoreRun.php b/gui/baculum/protected/API/Pages/API/RestoreRun.php index a79d628af..c9e4a2cf5 100644 --- a/gui/baculum/protected/API/Pages/API/RestoreRun.php +++ b/gui/baculum/protected/API/Pages/API/RestoreRun.php @@ -191,7 +191,7 @@ class RestoreRun extends ConsoleOutputPage { if (is_null($queued_jobid)) { // new jobid is not detected, error $this->error = JobError::ERROR_INVALID_PROPERTY; - $this->output = JobError::MSG_ERROR_INVALID_PROPERTY; + $this->output = JobError::MSG_ERROR_INVALID_PROPERTY . implode(PHP_EOL, $restore->output); } else { // new jobid is detected, check output format if ($out_format == parent::OUTPUT_FORMAT_JSON) {