diff --git a/index.js b/index.js index 2b7d9f1..75cf8bd 100644 --- a/index.js +++ b/index.js @@ -398,9 +398,13 @@ function getCommand(){ if (command == "close") { rl.close(); } else { - console.log(command, eval(command) ) - getCommand() - // somehow switch to node REPL proper after?! + try { + console.log(command, eval(command) ) + } catch (err) { + console.log(err) + } + getCommand() + // somehow switch to node REPL proper after?! } }); }