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/servlet.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/rdoc/servlet.rb') diff --git a/lib/rdoc/servlet.rb b/lib/rdoc/servlet.rb index bead186b00..0ab1eaf19d 100644 --- a/lib/rdoc/servlet.rb +++ b/lib/rdoc/servlet.rb @@ -7,8 +7,7 @@ require 'json' 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 ## -- cgit v1.2.3