From af57c84339a6a8bb597730d2958c1f7cead53364 Mon Sep 17 00:00:00 2001 From: Jake Barnby Date: Fri, 25 Feb 2022 22:10:00 +1300 Subject: [PATCH] Append stdout to function build error log --- app/executor.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/executor.php b/app/executor.php index d9be75dca7..f3659c809f 100644 --- a/app/executor.php +++ b/app/executor.php @@ -303,8 +303,8 @@ App::post('/v1/runtimes') Console::success('Build Stage completed in ' . ($endTime - $startTime) . ' seconds'); } catch (Throwable $th) { - Console::error('Build failed: ' . $th->getMessage()); - throw new Exception($th->getMessage(), 500); + Console::error('Build failed: ' . $th->getMessage() . $stdout); + throw new Exception($th->getMessage() . $stdout, 500); } finally { if (!empty($containerId) && $remove) { $orchestration->remove($containerId, true);