Skip to content

Commit 0c3fa04

Browse files
committed
Simple error handler
1 parent 202b286 commit 0c3fa04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,10 @@ <h2>Changes from Coco: Detail and Rationale</h2>
475475
catch e
476476
e.message
477477
if action is \run
478-
result = eval result
478+
try
479+
result = eval result
480+
catch e
481+
result = e
479482
if result
480483
console?.log result
481484
result = JSON.stringify result if action in <[ lex tokens ]>

0 commit comments

Comments
 (0)