From 529ed172c6bf92e63a7febb2ea827e100b110aef Mon Sep 17 00:00:00 2001 From: Marcin Haba Date: Thu, 9 Mar 2023 10:19:59 +0100 Subject: [PATCH] baculum: Tweak fix error message for wrong exit code --- gui/baculum/protected/API/Pages/API/JobRun.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.47.3