mirror of https://gitee.com/bigwinds/arangodb
Improve error reporting in arangosh with kickstarter.
This commit is contained in:
parent
be319498f7
commit
733e94ad0a
|
@ -68,7 +68,6 @@ Kickstarter.prototype.launch = function () {
|
||||||
JSON.stringify({"action": "launch",
|
JSON.stringify({"action": "launch",
|
||||||
"clusterPlan": this.clusterPlan,
|
"clusterPlan": this.clusterPlan,
|
||||||
"myname": this.myname}));
|
"myname": this.myname}));
|
||||||
arangosh.checkRequestResult(r);
|
|
||||||
this.runInfo = r.runInfo;
|
this.runInfo = r.runInfo;
|
||||||
return r;
|
return r;
|
||||||
};
|
};
|
||||||
|
@ -80,7 +79,6 @@ Kickstarter.prototype.shutdown = function () {
|
||||||
"clusterPlan": this.clusterPlan,
|
"clusterPlan": this.clusterPlan,
|
||||||
"myname": this.myname,
|
"myname": this.myname,
|
||||||
"runInfo": this.runInfo}));
|
"runInfo": this.runInfo}));
|
||||||
arangosh.checkRequestResult(r);
|
|
||||||
return r;
|
return r;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -90,7 +88,6 @@ Kickstarter.prototype.relaunch = function () {
|
||||||
JSON.stringify({"action": "relaunch",
|
JSON.stringify({"action": "relaunch",
|
||||||
"clusterPlan": this.clusterPlan,
|
"clusterPlan": this.clusterPlan,
|
||||||
"myname": this.myname}));
|
"myname": this.myname}));
|
||||||
arangosh.checkRequestResult(r);
|
|
||||||
this.runInfo = r.runInfo;
|
this.runInfo = r.runInfo;
|
||||||
return r;
|
return r;
|
||||||
};
|
};
|
||||||
|
@ -101,7 +98,6 @@ Kickstarter.prototype.cleanup = function () {
|
||||||
JSON.stringify({"action": "cleanup",
|
JSON.stringify({"action": "cleanup",
|
||||||
"clusterPlan": this.clusterPlan,
|
"clusterPlan": this.clusterPlan,
|
||||||
"myname": this.myname}));
|
"myname": this.myname}));
|
||||||
arangosh.checkRequestResult(r);
|
|
||||||
return r;
|
return r;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -112,15 +108,12 @@ Kickstarter.prototype.isHealthy = function () {
|
||||||
"clusterPlan": this.clusterPlan,
|
"clusterPlan": this.clusterPlan,
|
||||||
"myname": this.myname,
|
"myname": this.myname,
|
||||||
"runInfo": this.runInfo}));
|
"runInfo": this.runInfo}));
|
||||||
arangosh.checkRequestResult(r);
|
|
||||||
return r;
|
return r;
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.Planner = Planner;
|
exports.Planner = Planner;
|
||||||
exports.Kickstarter = Kickstarter;
|
exports.Kickstarter = Kickstarter;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
// --SECTION-- END-OF-FILE
|
// --SECTION-- END-OF-FILE
|
||||||
// -----------------------------------------------------------------------------
|
// -----------------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue