Merge pull request #598 from embark-framework/geth_fix

ignore stderr since geth outputs normal logs to it
This commit is contained in:
Iuri Matias 2018-07-04 09:50:44 -04:00 committed by GitHub
commit dbc18fddfa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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