ignore stderr since geth outputs normal logs to it

This commit is contained in:
Iuri Matias 2018-07-04 16:10:12 +03:00
parent 3228ff2086
commit 6c03a2e212
1 changed files with 1 additions and 1 deletions

View File

@ -194,7 +194,7 @@ Blockchain.prototype.checkPathLength = function() {
Blockchain.prototype.isClientInstalled = function(callback) {
let versionCmd = this.client.determineVersionCommand();
this.runCommand(versionCmd, {}, (err, stdout, stderr) => {
if (err || stderr || !stdout || stdout.indexOf("not found") >= 0) {
if (err || !stdout || stdout.indexOf("not found") >= 0) {
return callback('Geth not found');
}
callback();