]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
DBFatal at load time deserve special treatment
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 4 Oct 2010 21:41:59 +0000 (23:41 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Mon, 4 Oct 2010 21:41:59 +0000 (23:41 +0200)
Don't trap them, rerise and let the bot handle them

lib/rbot/plugins.rb

index 05855b418bf9ba5edeb45f55093fb8ed12f26c54..9a41610f6e4961b9fb6de8431e80b8674d8d6cfd 100644 (file)
@@ -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+/)