summaryrefslogtreecommitdiff
path: root/string.c
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2021-04-13 12:13:59 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-08-31 19:06:14 +0900
commit1663dd5f73c514343937cc018f5371dbffdeed99 (patch)
tree21c9956ba12f8947ccb09d91c70832335f00088b /string.c
parent0aa9eb9eed9e0cb38c7e1c1fcd37061bdfc385b7 (diff)
[rubygems/rubygems] Simplify rescue of bundler errors
As far as I understand, this block should only be run when `bundler/setup` fails. The only other case where these errors could be run is when bundler itself is required. If bundler itself fails to be required or activated (like in old rubies where it was not a default gem, for example), the raw error is much more helpful than this message. So we can move the rescue after bundler is succesfully required, and that simplifies the list of exceptions that we need to track to just `Bundler::Error`. https://github.com/rubygems/rubygems/commit/3663c11e93
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/4789
Diffstat (limited to 'string.c')
0 files changed, 0 insertions, 0 deletions