Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Report why a plugin failed to load #511

Merged
merged 2 commits into from

2 participants

@iamleeg

This gives a bit more information relating to #510.

@elvisimprsntr elvisimprsntr merged commit b183130 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 17, 2013
  1. Report the failure reason for plugin load

    Graham Lee authored
  2. fix the message format

    Graham Lee authored
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/siriproxy/plugin_manager.rb
View
4 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
Something went wrong with that request. Please try again.