Permalink
Browse files

Report the failure reason for plugin load

  • Loading branch information...
1 parent 2427b4e commit 07b2ab8475c098d5a49b7cc5c3476658fafef4bc Graham Lee committed Apr 17, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/siriproxy/plugin_manager.rb
@@ -25,9 +25,9 @@ def load_plugins()
plugin.plugin_name = className
plugin.manager = self
@plugins << plugin
- rescue
+ rescue Exception=>e
if pluginConfig['name']
- puts "[Error] Failed to load plugin: #{pluginConfig['name']}"
+ puts "[Error] Failed to load plugin: #{pluginConfig['name']} reason: #{e}.message"
else
puts "[Error] Failed to load a plugin that has no name, check your config.yml"
end

0 comments on commit 07b2ab8

Please sign in to comment.