Merge pull request #436 from embark-framework/fixConsolePluginCmdOutput
Fixed Returns From Plugin Modules
This commit is contained in:
commit
4439f8b601
|
@ -38,7 +38,7 @@ class Console {
|
||||||
var pluginCmds = this.plugins.getPluginsProperty('console', 'console');
|
var pluginCmds = this.plugins.getPluginsProperty('console', 'console');
|
||||||
for (let pluginCmd of pluginCmds) {
|
for (let pluginCmd of pluginCmds) {
|
||||||
let pluginOutput = pluginCmd.call(this, cmd, {});
|
let pluginOutput = pluginCmd.call(this, cmd, {});
|
||||||
if (pluginOutput !== false && pluginOutput !== 'false') return callback(pluginOutput);
|
if (pluginOutput !== false && pluginOutput !== 'false' && pluginOutput !== undefined) return callback(pluginOutput);
|
||||||
}
|
}
|
||||||
|
|
||||||
let output = this.processEmbarkCmd(cmd);
|
let output = this.processEmbarkCmd(cmd);
|
||||||
|
|
|
@ -47,6 +47,7 @@ class Profiler {
|
||||||
self.logger.info("-- profile for " + contractName);
|
self.logger.info("-- profile for " + contractName);
|
||||||
this.profile(contractName, contract);
|
this.profile(contractName, contract);
|
||||||
});
|
});
|
||||||
|
return "";
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue