summaryrefslogtreecommitdiff
path: root/lib/rubygems/exceptions.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2022-07-22 12:27:21 +0900
committergit <[email protected]>2022-07-22 21:01:31 +0900
commita4e890b93e826b923175f4eb9b05823e82fb1fb1 ()
tree52666e880a52fcd5d23519b7ce561e8b010a6ff1 /lib/rubygems/exceptions.rb
parent55c771c302f94f1d1d95bf41b42459b4d2d1c337 (diff)
[rubygems/rubygems] Use `SystemExit#status` as `exit_code`
No reasons to manage separately. https://.com/rubygems/rubygems/commit/8ede5c886e
-rw-r--r--lib/rubygems/exceptions.rb4
1 files changed, 1 insertions, 3 deletions
@@ -221,14 +221,12 @@ class Gem::SystemExitException < SystemExit
##
# The exit code for the process
- attr_accessor :exit_code
##
# Creates a new SystemExitException with the given +exit_code+
def initialize(exit_code)
- @exit_code = exit_code
-
super exit_code, "Exiting RubyGems with exit_code #{exit_code}"
end
end