Skip to content
This repository has been archived by the owner on Jan 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #511 from iamleeg/master
Browse files Browse the repository at this point in the history
Report why a plugin failed to load
  • Loading branch information
Elvis committed Apr 18, 2013
2 parents 1afe49b + f06a166 commit b183130
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/siriproxy/plugin_manager.rb
Expand Up @@ -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
Expand Down

0 comments on commit b183130

Please sign in to comment.