From c4c48bf47b96cfd0806b028209181d921bacceac Mon Sep 17 00:00:00 2001 From: The Ghost of FOSS' Future <163201376+sneedgroup-holder@users.noreply.github.com> Date: Wed, 8 Jan 2025 22:53:12 +0000 Subject: [PATCH] Update repl.js --- repl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; }