add exit code to error message

This commit is contained in:
Felix Ohnesorge 2024-04-29 19:02:43 +00:00
parent ce79965d0c
commit 330e73fe39

View file

@ -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); let exitCode = await Terminal.exec(server, socket, terminalName, "git", [ "clone", "-b", branch, gitUrl, stackName ], server.stacksDir);
if (exitCode !== 0) { 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); const stack = await Stack.getStack(server, stackName);