lib/remnant/base.rb in remnant-0.9.5 vs lib/remnant/base.rb in remnant-1.0.0

- old
+ new

@@ -114,10 +114,14 @@ end end # run hook if given for all environments unless Remnant.configuration.custom_hook.nil? - Remnant.configuration.custom_hook.call(Remnant::Discover.results) + begin + Remnant.configuration.custom_hook.call(Remnant::Discover.results) + rescue => e + ::Rails.logger.error "Failed to run hook: #{e.message}" + end end Remnant::Database.reset Remnant::Template.reset Remnant::Filters.reset