1
0
Fork 0
mirror of synced 2024-09-28 07:21:35 +12:00

Merge pull request #2839 from appwrite/refactor-func-build-fail-log

Append stdout to function build error log
This commit is contained in:
Christy Jacob 2022-02-25 14:58:42 +04:00 committed by GitHub
commit 1b70995be5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);