* lib/rdoc/ri/driver.rb (interactive): rescue NotFoundError raised in

expand_name. (display_name rescues NotFoundError by itself,
  the original logic looks buggy...)

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54235 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2016-03-23 05:25:29 +00:00
Родитель 7bfeb1c2ae
Коммит 63436b3ff2
2 изменённых файлов: 7 добавлений и 3 удалений

Просмотреть файл

@ -1,3 +1,9 @@
Wed Mar 23 14:23:54 2016 NARUSE, Yui <naruse@ruby-lang.org>
* lib/rdoc/ri/driver.rb (interactive): rescue NotFoundError raised in
expand_name. (display_name rescues NotFoundError by itself,
the original logic looks buggy...)
Wed Mar 23 11:44:53 2016 cremno <cremno@mail.ru>
* marshal.c (r_long): cast to `signed char`, which is used

Просмотреть файл

@ -1089,10 +1089,8 @@ The ri pager can be set with the 'RI_PAGER' environment variable or the
return if name.nil? or name.empty?
name = expand_name name.strip
begin
display_name name
display_name expand_name(name.strip)
rescue NotFoundError => e
puts e.message
end