lib/textbringer/plugin.rb in textbringer-0.2.5 vs lib/textbringer/plugin.rb in textbringer-0.2.6
- old
+ new
@@ -10,10 +10,14 @@
def self.load_plugins
files = Gem.find_latest_files("textbringer_plugin.rb", false) +
Dir.glob(File.join(directory, "*/**/textbringer_plugin.rb"))
files.each do |file|
- load(file)
+ begin
+ load(file)
+ rescue Exception => e
+ show_exception(e)
+ end
end
end
end
end