]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Report plugin loading failues as errors, not as warnings
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 26 Aug 2007 15:09:03 +0000 (15:09 +0000)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 26 Aug 2007 15:09:03 +0000 (15:09 +0000)
lib/rbot/plugins.rb

index 9cdf73a9c379cd2f7848988d4cf76c0f73af9f30..99ae31b6f03db8ddd2d7ed32493879ca3ec409cb 100644 (file)
@@ -366,7 +366,7 @@ module Plugins
         return :loaded
       rescue Exception => err
         # rescue TimeoutError, StandardError, NameError, LoadError, SyntaxError => err
-        warning report_error("#{desc}#{fname} load failed", err)
+        error report_error("#{desc}#{fname} load failed", err)
         bt = err.backtrace.select { |line|
           line.match(/^(\(eval\)|#{fname}):\d+/)
         }