fixed try/catch section

This commit is contained in:
Leah Hanson 2013-07-01 17:03:05 -04:00
parent 2627624bb4
commit 0f641aed5e

View File

@ -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")
####################################################