From 83229da8d25e044bca03f9ae879cadaf06acae3a Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Mon, 4 Oct 2010 23:41:59 +0200 Subject: DBFatal at load time deserve special treatment Don't trap them, rerise and let the bot handle them --- lib/rbot/plugins.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 05855b41..9a41610f 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -573,6 +573,7 @@ module Plugins return :loaded rescue Exception => err # rescue TimeoutError, StandardError, NameError, LoadError, SyntaxError => err + raise if err.kind_of? DBFatal error report_error("#{desc}#{fname} load failed", err) bt = err.backtrace.select { |line| line.match(/^(\(eval\)|#{fname}):\d+/) -- cgit v1.2.3