summaryrefslogtreecommitdiffhomepage
path: root/julia.html.markdown
diff options
context:
space:
mode:
Diffstat (limited to 'julia.html.markdown')
-rw-r--r--julia.html.markdown9
1 files changed, 5 insertions, 4 deletions
diff --git a/julia.html.markdown b/julia.html.markdown
index 12f52e6e..5ba27efc 100644
--- a/julia.html.markdown
+++ b/julia.html.markdown
@@ -286,10 +286,11 @@ end
error("help") # ERROR: help in error at error.jl:21
try
- error("my error!")
-except
- println("caught it!")
-end
+ error("help")
+catch e
+ println("caught it $e")
+end
+#=> caught it ErrorException("help")
####################################################