Improved error handling.
This commit is contained in:
parent
1b17c31938
commit
dc060a28c2
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue