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

Prevent exceptions being masked by undefined method errors in ruby 2.4 #135

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

zspencer
Copy link

@zspencer zspencer commented Mar 6, 2018

@glejeune - This may be a ruby 2.4 idiosynracy, I didn't take the time to diagnose it further.

Essentially, sometimes the status returned from output_and_errors_from_command is nil, which does not respond to zero?; causing the actual commands errors to be masked.

This patches that so the underlying graphviz usage errors can bubble up.

I believe this resolves both #133 and #125

@aguynamedryan
Copy link

Ran into the same issue and this PR fixes it for me. Thanks @zspencer. @glejeune, would you be willing to merge this?

@ymarkus
Copy link

ymarkus commented Dec 3, 2020

Can confirm. This makes it usable in my project. Please merge it!

@soberstadt
Copy link

This came up for me today too. It exposed an actual error from graphviz (not a helpful error, but at least an error). Please merge this :)

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.

4 participants