diff --git a/repl.js b/repl.js index f50dc3d..c763451 100644 --- a/repl.js +++ b/repl.js @@ -1549,7 +1549,11 @@ import * as bjson from "qjs:bjson"; } mexpr = ""; - eval_and_print(expr); + try { + eval_and_print(expr); + } catch (Exception ex) { + console.log(`Error: $(ex)`) + } return true; }