]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Add more detailed output to restore endpoint
authorMarcin Haba <marcin.haba@bacula.pl>
Wed, 29 Mar 2023 14:47:57 +0000 (16:47 +0200)
committerMarcin Haba <marcin.haba@bacula.pl>
Thu, 20 Apr 2023 10:00:26 +0000 (12:00 +0200)
gui/baculum/protected/API/Pages/API/RestoreRun.php

index a79d628aff389abc75077f955fee80e20674c210..c9e4a2cf5ea909108c058d1a66ba43714d7533a9 100644 (file)
@@ -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) {