Merge pull request #221 from nogueian/develop

Minor typos and better naming
This commit is contained in:
Iuri Matias 2017-02-22 09:02:31 -05:00 committed by GitHub
commit 9efd107616
2 changed files with 4 additions and 5 deletions

View File

@ -40,7 +40,7 @@ ServicesMonitor.prototype.check = function() {
self.logger.trace('checkEthereum');
var service;
if (web3.isConnected()) {
service = (web3.version.node.split("/")[0] + " (Ethereum)").green;
service = (web3.version.node.split("/")[0] + " " + web3.version.node.split("/")[1].split("-")[0] + " (Ethereum)").green;
} else {
service = "No Blockchain node found".red;
}
@ -50,7 +50,7 @@ ServicesMonitor.prototype.check = function() {
function checkWhisper(web3, result, callback) {
self.logger.trace('checkWhisper');
web3.version.getWhisper(function(err, res) {
var service = 'whisper';
var service = 'Whisper';
result.push(err ? service.red : service.green);
callback(null, result);
});
@ -69,7 +69,7 @@ ServicesMonitor.prototype.check = function() {
},
function checkDevServer(result, callback) {
self.logger.trace('checkDevServer');
var devServer = 'dev server (http://' + self.serverHost + ':' + self.serverPort + ')';
var devServer = 'Webserver (http://' + self.serverHost + ':' + self.serverPort + ')';
devServer = (self.runWebserver) ? devServer.green : devServer.red;
result.push(devServer);
callback(null, result);

View File

@ -29,7 +29,7 @@ Console.prototype.executeCmd = function(cmd, callback) {
'web3 - instantiated web3.js object configured to the current environment',
'quit - to immediatly exit',
'',
'The web3 object and the interfaces for the deployed contrats and their methods are also available'
'The web3 object and the interfaces for the deployed contracts and their methods are also available'
];
return callback(helpText.join('\n'));
} else if (cmd === 'quit') {
@ -50,4 +50,3 @@ Console.prototype.executeCmd = function(cmd, callback) {
};
module.exports = Console;