From: Marcin Haba Date: Thu, 9 Mar 2023 09:19:59 +0000 (+0100) Subject: baculum: Tweak fix error message for wrong exit code X-Git-Tag: Release-13.0.3~116 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=529ed172c6bf92e63a7febb2ea827e100b110aef;p=thirdparty%2Fbacula.git baculum: Tweak fix error message for wrong exit code --- diff --git a/gui/baculum/protected/API/Pages/API/JobRun.php b/gui/baculum/protected/API/Pages/API/JobRun.php index 77a8f5389..c5c000ec5 100644 --- a/gui/baculum/protected/API/Pages/API/JobRun.php +++ b/gui/baculum/protected/API/Pages/API/JobRun.php @@ -209,8 +209,8 @@ class JobRun extends ConsoleOutputPage { } } else { // exit code WRONG - $this->output = $run->output; - $this->error = JobError::ERROR_WRONG_EXITCODE . ' Exitcode => ' . $run->exitcode; + $this->output = implode(PHP_EOL, $run->output) . ' Exitcode => ' . $run->exitcode; + $this->error = JobError::ERROR_WRONG_EXITCODE; } }