From c70089ee5336442a9570f3dce1095fc2f04d542d Mon Sep 17 00:00:00 2001 From: Mauricio Siu <47042324+Siumauricio@users.noreply.github.com> Date: Wed, 7 Aug 2024 21:41:25 -0600 Subject: [PATCH] refactor(logs): add error log in build application --- apps/dokploy/server/utils/builders/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/dokploy/server/utils/builders/index.ts b/apps/dokploy/server/utils/builders/index.ts index 432138d25..b3ca2e05e 100644 --- a/apps/dokploy/server/utils/builders/index.ts +++ b/apps/dokploy/server/utils/builders/index.ts @@ -54,7 +54,11 @@ export const buildApplication = async ( await mechanizeDockerContainer(application); writeStream.write("Docker Deployed: ✅"); } catch (error) { - writeStream.write("Error ❌"); + if (error instanceof Error) { + writeStream.write(`Error ❌\n${error?.message}`); + } else { + writeStream.write("Error ❌"); + } throw error; } finally { writeStream.end();