mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2024-12-23 09:41:36 +00:00
fixed try/catch section
This commit is contained in:
parent
2627624bb4
commit
0f641aed5e
@ -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")
|
||||
|
||||
|
||||
####################################################
|
||||
|
Loading…
Reference in New Issue
Block a user