mirror of
https://github.com/louislam/dockge.git
synced 2024-11-27 21:24:02 +00:00
add exit code to error message
This commit is contained in:
parent
ce79965d0c
commit
330e73fe39
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue