From 330e73fe39196fe43166087ab4d5e8ee1bc6b03a Mon Sep 17 00:00:00 2001 From: Felix Ohnesorge Date: Mon, 29 Apr 2024 19:02:43 +0000 Subject: [PATCH] add exit code to error message --- backend/agent-socket-handlers/docker-socket-handler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/agent-socket-handlers/docker-socket-handler.ts b/backend/agent-socket-handlers/docker-socket-handler.ts index b7c5ecb..880d806 100644 --- a/backend/agent-socket-handlers/docker-socket-handler.ts +++ b/backend/agent-socket-handlers/docker-socket-handler.ts @@ -50,7 +50,7 @@ export class DockerSocketHandler extends AgentSocketHandler { let exitCode = await Terminal.exec(server, socket, terminalName, "git", [ "clone", "-b", branch, gitUrl, stackName ], server.stacksDir); if (exitCode !== 0) { - throw new Error("Failed to clone git repo"); + throw new Error(`Failed to clone git repo [Exit Code ${exitCode}]`); } const stack = await Stack.getStack(server, stackName);