B
Ben Harper
Why do I explicitly have to catch LoadError as thrown by 'require'?
The following code demonstrates my problem:
------------------------------------------
begin
require 'not_existent'
rescue
print 'I am never reached'
#rescue LoadError
# print "But uncommenting these lines allows me to handle it"
end
The following code demonstrates my problem:
------------------------------------------
begin
require 'not_existent'
rescue
print 'I am never reached'
#rescue LoadError
# print "But uncommenting these lines allows me to handle it"
end