]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
baculum: Tweak fix error message for wrong exit code
authorMarcin Haba <marcin.haba@bacula.pl>
Thu, 9 Mar 2023 09:19:59 +0000 (10:19 +0100)
committerMarcin Haba <marcin.haba@bacula.pl>
Sat, 11 Mar 2023 21:32:26 +0000 (22:32 +0100)
gui/baculum/protected/API/Pages/API/JobRun.php

index 77a8f5389a38cba39836e7e2566b1b60dca41bdb..c5c000ec5ae8cb0de1ac68a8402c4b091bd5651d 100644 (file)
@@ -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;
                }
        }