summaryrefslogtreecommitdiff
path: root/lib/rubygems/resolver/activation_request.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <[email protected]>2024-09-05 20:07:51 +0200
committergit <[email protected]>2024-09-11 11:28:12 +0000
commit89eba5074e8ffc28a54646d40f6915d279be367d ()
treedff405a613a61516cd5c7ec9728ab5c68fc043fc /lib/rubygems/resolver/activation_request.rb
parent1d72b3bd1a1ebaaca89b50a8b6f391b7358c0986 (diff)
[rubygems/rubygems] Only raise DSLError during Gemfile parsing when it's actually useful
DSLError prints the specific line in a Gemfile where the error was raised. That's helpful when the error was explicitly raised by the Gemfile DSL or, in the case it's implicitly raised, when the offending code lives right in the Gemfile. If it's an internal error, or something buried dowm in user code called from the Gemfile, `DSLError` is not helpful since it hides the actual culprit. This commit tries to only raise `DSLError` in the cases mentioned above and otherwise let the original error be raised. https://.com/rubygems/rubygems/commit/b30ff5a682
0 files changed, 0 insertions, 0 deletions