diff options
| author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2024-09-05 20:07:51 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-09-11 11:28:12 +0000 |
| commit | 89eba5074e8ffc28a54646d40f6915d279be367d (patch) | |
| tree | dff405a613a61516cd5c7ec9728ab5c68fc043fc /array.c | |
| parent | 1d72b3bd1a1ebaaca89b50a8b6f391b7358c0986 (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://github.com/rubygems/rubygems/commit/b30ff5a682
Diffstat (limited to 'array.c')
0 files changed, 0 insertions, 0 deletions
