From 1e4c8ffa77beab8c118e79139801d85e99f32a30 Mon Sep 17 00:00:00 2001 From: Rudi Theunissen Date: Tue, 17 Nov 2015 13:11:53 +1300 Subject: [PATCH] Fix all misspellings of "unknown" --- lib/CLI.js | 4 ++-- lib/Configuration.js | 2 +- lib/Interactor/PushInteractor.js | 2 +- test/interface/custom-actions.mocha.js | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/CLI.js b/lib/CLI.js index 3cfb14e8..8ba69663 100644 --- a/lib/CLI.js +++ b/lib/CLI.js @@ -751,8 +751,8 @@ CLI.reset = function(process_name, cb) { return cb ? cb({msg:err}) : exitCli(cst.ERROR_EXIT); } if (ids.length === 0) { - printError('Unknow process name'); - return cb ? cb({msg:'Unknow process name'}) : exitCli(cst.ERROR_EXIT); + printError('Unknown process name'); + return cb ? cb({msg:'Unknown process name'}) : exitCli(cst.ERROR_EXIT); } return processIds(ids, cb); }); diff --git a/lib/Configuration.js b/lib/Configuration.js index d1bc4791..367b8590 100644 --- a/lib/Configuration.js +++ b/lib/Configuration.js @@ -126,7 +126,7 @@ Configuration.get = function(key, cb) { return false; }); - if (!data) return cb({err : 'Unknow key'}, null); + if (!data) return cb({err : 'Unknown key'}, null); return cb(null, data); }); }; diff --git a/lib/Interactor/PushInteractor.js b/lib/Interactor/PushInteractor.js index 3acbbe6f..f3d7a2ba 100644 --- a/lib/Interactor/PushInteractor.js +++ b/lib/Interactor/PushInteractor.js @@ -167,7 +167,7 @@ var PushInteractor = module.exports = { var logs_limit_size = 1024 * 50; // if (Object.keys(self._packet).indexOf(event) == -1) { - // return console.error('SKIP unknow field name [%s]', event); + // return console.error('SKIP unknown field name [%s]', event); // } debug('Buffering one more event %s', event); diff --git a/test/interface/custom-actions.mocha.js b/test/interface/custom-actions.mocha.js index 62ff9b10..b44d4e7f 100644 --- a/test/interface/custom-actions.mocha.js +++ b/test/interface/custom-actions.mocha.js @@ -207,7 +207,7 @@ describe('CUSTOM ACTIONS', function() { server.emit('cmd', { _type : 'trigger:action', process_id : 0, - action_name : 'unknow:action' + action_name : 'unknown:action' }); });