From d5dfc3f2c833d62e4e0fb3145ed729f48b8e2a66 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Thu, 10 Dec 2020 21:04:57 +0900 Subject: Use `abort(message)` instead of `puts` and `exit` --- lib/rdoc/ri/driver.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/rdoc/ri/driver.rb') diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb index bb7f7f61a6..a4b70b8f56 100644 --- a/lib/rdoc/ri/driver.rb +++ b/lib/rdoc/ri/driver.rb @@ -1554,8 +1554,7 @@ or the PAGER environment variable. begin require 'webrick' rescue LoadError - puts "webrick is not found. You may need to `gem install webrick` to install webrick." - exit + abort "webrick is not found. You may need to `gem install webrick` to install webrick." end server = WEBrick::HTTPServer.new :Port => @server -- cgit v1.2.3