summaryrefslogtreecommitdiff
path: root/lib/rubygems
diff options
context:
space:
mode:
authorKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-12-10 21:04:57 +0900
committerKazuhiro NISHIYAMA <zn@mbf.nifty.com>2020-12-10 21:06:10 +0900
commitd5dfc3f2c833d62e4e0fb3145ed729f48b8e2a66 (patch)
tree0a50f8b82d608fef8172c65b3315d8a06189b535 /lib/rubygems
parent78f188524f551c97b1a7a44ae13514729f1a21c7 (diff)
Use `abort(message)` instead of `puts` and `exit`
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/server.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rubygems/server.rb b/lib/rubygems/server.rb
index 6d472ad02a..2c2805f31c 100644
--- a/lib/rubygems/server.rb
+++ b/lib/rubygems/server.rb
@@ -431,8 +431,7 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
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
Gem::RDoc.load_rdoc