add exit code to error message

This commit is contained in:
Felix Ohnesorge 2024-04-29 19:02:43 +00:00
parent 26f8602e84
commit b946b11f5f

View file

@ -51,7 +51,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);