Hi, I was trying to play with -d option in Ruby. But getting the below error. @ubuntu:~$ ruby -d -e '"gg"' Exception `LoadError' at /usr/lib/ruby/1.9.1/rubygems.rb:1264 - cannot load such file -- rubygems/defaults/operating_system Exception `LoadError' at /usr/lib/ruby/1.9.1/rubygems.rb:1273 - cannot load such file -- rubygems/defaults/ruby -e:1: warning: possibly useless use of a literal in void context @ubuntu:~$ Could anyone help me to fix this by saying why is that coming? Thanks
on 2013-02-13 23:12
on 2013-02-14 00:07
That's simply what -d does – it prints all exceptions that ever happen in your code, even if they are rescued.
on 2013-02-14 00:16
Bartosz Dziewoński wrote in post #1096783: even if they are rescued. <~~~~ Could you explain this line more elaborately?
on 2013-02-14 01:07
Am 14.02.2013 00:17, schrieb Love U Ruby: > Bartosz Dziewoński wrote in post #1096783: > > even if they are rescued. <~~~~ Could you explain this line more > elaborately? could you google "ruby rescue exceptions"?
on 2013-02-14 08:06
unknown wrote in post #1096794: > Am 14.02.2013 00:17, schrieb Love U Ruby: >> Bartosz Dziewoński wrote in post #1096783: >> >> even if they are rescued. <~~~~ Could you explain this line more >> elaborately? > > could you google "ruby rescue exceptions"? Yes I know what is "rescue", rather I asked the explanation - "it prints all exceptions that ever happen in your code, even if they are rescued." Thanks
on 2013-02-14 09:03
On Feb 13, 2013, at 23:06 , Love U Ruby <lists@ruby-forum.com> wrote: > Yes I know what is "rescue", rather I asked the explanation - "it prints > all exceptions that ever happen in your code, even if they are rescued." Do you realize that you've burned most of your bridges here, right? Heed the criticism you're getting now or you're going to get cut off entirely.
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.