handle cmd error

This commit is contained in:
Iuri Matias 2017-03-03 21:11:53 -05:00
parent 94cca83670
commit 383d69c194
1 changed files with 3 additions and 0 deletions

View File

@ -153,6 +153,9 @@ GethCommands.prototype.mainCommand = function(address, done) {
callback(null, "");
}
], function(err, results) {
if (err) {
throw new Error(err.message);
}
done(self.geth_bin + " " + results.join(" "));
});
};