Improved error handling.

This commit is contained in:
Martin Edenhofer 2013-03-22 08:04:56 +01:00
parent 1b17c31938
commit dc060a28c2

View file

@ -308,7 +308,11 @@ class Package < ApplicationModel
['app', 'lib'].each {|dir|
Dir.glob( Rails.root.join( dir + '/**/*') ).each {|entry|
if entry =~ /\.rb$/
load entry
begin
load entry
rescue => e
puts 'ERROR: ' + e.inspect
end
end
}
}