diff options
Diffstat (limited to 'qml/commands.js')
-rw-r--r-- | qml/commands.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/qml/commands.js b/qml/commands.js index b116b23..765a747 100644 --- a/qml/commands.js +++ b/qml/commands.js @@ -1,27 +1,27 @@ function execute(output, command) { - var msg = function(name) { - output.log('"' + name + '"' + " is not implemented."); + var notImplemented = function(name) { + output.error('"' + name + '"' + ' is not implemented.'); }; var args = command.split(' '); try { var closure = eval(args[0]); - if ( typeof closure === "function" ) { + if ( typeof closure === 'function' ) { args.shift(); closure(output, args); } else { - msg(args[0]); + notImplemented(args[0]); } } catch (exception) { - msg(args[0]); + notImplemented(args[0]); } } function exec(output, args) { var result = eval(args.join(' ')); - if ( typeof result !== "undefined" ) { + if ( typeof result !== 'undefined' ) { output.log(result); } else { output.log(''); |