Permalink
Browse files

Merge pull request #511 from iamleeg/master

Report why a plugin failed to load
  • Loading branch information...
elvisimprsntr committed Apr 18, 2013
2 parents 1afe49b + f06a166 commit b183130bbbb0391a3cb8ef34f4c7624cc4ef6ca3
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 b183130

Please sign in to comment.