mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-24 09:21:12 +00:00
Include plugin name in the exception when the plugin required by requires_redmine_plugin is not found (#31030).
Patch by Jérôme BATAILLE and Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@17960 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
2010cdc1a3
commit
b916bc8092
@ -271,7 +271,11 @@ module Redmine
|
||||
arg = { :version_or_higher => arg } unless arg.is_a?(Hash)
|
||||
arg.assert_valid_keys(:version, :version_or_higher)
|
||||
|
||||
plugin = Plugin.find(plugin_name)
|
||||
begin
|
||||
plugin = Plugin.find(plugin_name)
|
||||
rescue PluginNotFound
|
||||
raise PluginRequirementError.new("#{id} plugin requires the #{plugin_name} plugin")
|
||||
end
|
||||
current = plugin.version.split('.').collect(&:to_i)
|
||||
|
||||
arg.each do |k, v|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user