diff --git a/index.js b/index.js index a6ff78e..2c81aa2 100644 --- a/index.js +++ b/index.js @@ -4,7 +4,7 @@ module.exports = function hashswitch (actions, defaultCallback){ actions && Object.keys(actions).forEach(function (action) { ('string' === typeof action && 'function' === typeof actions[action]) ? (hash[action] = actions[action]) : - console.log(action + ' should be a string and ' + actions[action] + ' should be a function.') + console.error(action + ' should be a string and ' + actions[action] + ' should be a function.') }) return function exectue (action) { 'string' !== typeof action && console.error(action + ' should be a string')