HCoop
/
jackhill
/
mal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #377 from asarhaddon/fix-runtests-pre-eval
[jackhill/mal.git]
/
crystal
/
step1_read_print.cr
diff --git
a/crystal/step1_read_print.cr
b/crystal/step1_read_print.cr
index
cdc05d5
..
4d71958
100755
(executable)
--- a/
crystal/step1_read_print.cr
+++ b/
crystal/step1_read_print.cr
@@
-30,7
+30,9
@@
end
while line = Readline.readline("user> ", true)
begin
puts Mal.rep(line)
+ rescue e : Mal::RuntimeException
+ STDERR.puts "Error: #{pr_str(e.thrown, true)}"
rescue e
- STDERR.puts
e
+ STDERR.puts
"Error: #{e}"
end
end