From dc060a28c215c4416f28ada2208c97f8197a8ad4 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Fri, 22 Mar 2013 08:04:56 +0100 Subject: [PATCH] Improved error handling. --- app/models/package.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/models/package.rb b/app/models/package.rb index cd46d5929..098410d7a 100644 --- a/app/models/package.rb +++ b/app/models/package.rb @@ -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 } }