Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle Bundler DSL errors #8

Merged
merged 1 commit into from
Oct 29, 2024

Conversation

lovro-bikic
Copy link
Member

Given a Gemfile/Gemfile.lock that cannot be loaded by Bundler (despite already parsing it), DSLError is rescued and Polariscope::Error is raised instead.

@@ -0,0 +1,3 @@
source 'https://rubygems.org'

eval File.read('unavailable_file')
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some Gemfiles load other files; this is something Polariscope can't handle in certain modes (e.g. when you use Polariscope.scan with non-local Gemfile).

@lovro-bikic lovro-bikic merged commit 9cbf974 into master Oct 29, 2024
5 checks passed
@lovro-bikic lovro-bikic deleted the fix/raise-custom-error-on-unparseable-content branch October 29, 2024 19:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant