Skip to content

Commit dbc18fd

Browse files
authored
Merge pull request #598 from embark-framework/geth_fix
ignore stderr since geth outputs normal logs to it
2 parents 3228ff2 + 289be4b commit dbc18fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cmds/blockchain/blockchain.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ Blockchain.prototype.checkPathLength = function() {
194194
Blockchain.prototype.isClientInstalled = function(callback) {
195195
let versionCmd = this.client.determineVersionCommand();
196196
this.runCommand(versionCmd, {}, (err, stdout, stderr) => {
197-
if (err || stderr || !stdout || stdout.indexOf("not found") >= 0) {
197+
if (err || !stdout || stderr.indexOf("not found") >= 0 || stdout.indexOf("not found") >= 0) {
198198
return callback('Geth not found');
199199
}
200200
callback();

0 commit comments

Comments
 (0)