Project

General

Profile

Patch #31030 » RM_dependant_plugin_missing_exception_svn.diff

Jérôme BATAILLE, 2019-03-14 16:05

View differences:

lib/redmine/plugin.rb
267 267
      arg = { :version_or_higher => arg } unless arg.is_a?(Hash)
268 268
      arg.assert_valid_keys(:version, :version_or_higher)
269 269

  
270
      plugin = Plugin.find(plugin_name)
270
      begin
271
        plugin = Plugin.find(plugin_name)
272
      rescue
273
        raise PluginNotFound.new("#{id} plugin requires plugin #{plugin_name}")
274
      end
275

  
271 276
      current = plugin.version.split('.').collect(&:to_i)
272 277

  
273 278
      arg.each do |k, v|
    (1-1/1)