Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def foo
- eval string
- rescue SyntaxError, NameError => boom
- print "String doesn't compile: " + boom.message
- raise
- end
- begin
- foo
- rescue StandardError => bang
- print "Error running script: " + bang.message
- end
Add Comment
Please, Sign In to add comment