mirror of https://gitee.com/bigwinds/arangodb
Merge branch 'devel' of ssh://github.com/triAGENS/ArangoDB into devel
This commit is contained in:
parent
f1483a4ea0
commit
db5b987e0d
|
@ -402,10 +402,15 @@ function executeAndWait (cmd, args) {
|
|||
var pid = executeExternal(cmd, args);
|
||||
var res = statusExternal(pid, true);
|
||||
if (res.status === "TERMINATED") {
|
||||
return { status: (res.exit === 0), message: ""};
|
||||
if (res.exit === 0) {
|
||||
return { status: true, message: "" };
|
||||
}
|
||||
else {
|
||||
return { status: false, message: "exit code was " + res.exit};
|
||||
}
|
||||
}
|
||||
else {
|
||||
return { status: (res === 0), message: res.exit};
|
||||
return { status: false, message: "irregular termination: " + res.status};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue