diff --git a/server/utils/builders/compose.ts b/server/utils/builders/compose.ts index 7b3d2c12..9212cf60 100644 --- a/server/utils/builders/compose.ts +++ b/server/utils/builders/compose.ts @@ -58,7 +58,7 @@ Compose Type: ${composeType} ✅`; writeStream.write("Docker Compose Deployed: ✅"); } catch (error) { - writeStream.write(`ERROR: ${error}: ❌`); + writeStream.write("Error ❌"); throw error; } finally { writeStream.end(); diff --git a/server/utils/builders/index.ts b/server/utils/builders/index.ts index 5bc89352..5070e0ad 100644 --- a/server/utils/builders/index.ts +++ b/server/utils/builders/index.ts @@ -51,7 +51,7 @@ export const buildApplication = async ( await mechanizeDockerContainer(application); writeStream.write("Docker Deployed: ✅"); } catch (error) { - writeStream.write(`ERROR: ${error}: ❌`); + writeStream.write("Error ❌"); throw error; } finally { writeStream.end(); diff --git a/server/utils/process/spawnAsync.ts b/server/utils/process/spawnAsync.ts index b78766cd..84855ec0 100644 --- a/server/utils/process/spawnAsync.ts +++ b/server/utils/process/spawnAsync.ts @@ -39,7 +39,7 @@ export const spawnAsync = ( if (code === 0) { resolve(stdout); } else { - const err = new Error(`child exited with code ${code}`) as Error & { + const err = new Error(`${stderr.toString()}`) as Error & { code: number; stderr: BufferList; stdout: BufferList;