Guest User

Untitled

a guest
Jul 21st, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. def foo
  2. eval string
  3. rescue SyntaxError, NameError => boom
  4. print "String doesn't compile: " + boom.message
  5. raise
  6. end
  7.  
  8. begin
  9. foo
  10. rescue StandardError => bang
  11. print "Error running script: " + bang.message
  12. end
Add Comment
Please, Sign In to add comment