diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-10-04 23:41:59 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2010-10-04 23:41:59 +0200 |
commit | 83229da8d25e044bca03f9ae879cadaf06acae3a (patch) | |
tree | 71e41ec30b23b8b76301681e92c90529bd79fcfc /lib | |
parent | 1be43eaa6c5afbcedb36c4fb80e8b8799c75be90 (diff) |
DBFatal at load time deserve special treatment
Don't trap them, rerise and let the bot handle them
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/plugins.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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+/) |