lib/rrj/tools/gem/config/janus.rb in ruby_rabbitmq_janus-3.0.0 vs lib/rrj/tools/gem/config/janus.rb in ruby_rabbitmq_janus-3.0.1
- old
+ new
@@ -17,9 +17,11 @@
# @param [Fixnum] index determine what field is readint in array plugins
# in configuration file
# @return [String] read configuration for plugin with index
def plugin_at(index = 0)
@options['janus']['plugins'][index].to_s
+ rescue
+ raise RubyRabbitmqJanus::Errors::Tools::Plugins, index
end
alias ttl time_to_live
end
end