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

✨ When rails notes/about fails to run, save the error output and return it in the Extension error logs #17

Merged
merged 1 commit into from
Apr 14, 2022

Conversation

eirvandelden
Copy link
Contributor

This fixes #15.

The null is thrown because str the process failed to run, keeping str empty.

I'm changing the flow of both helpers a bit, if we detect that str is empty AND the status code is 1, then we know something broke and we can reject the promise.

By keeping track of the error output, we can also return WHAT happened.

@tommasongr
Copy link
Collaborator

Awesome!

Looks good to me. I'll push an update soon.

Thanks 😆

@tommasongr tommasongr merged commit e4d18b2 into nova-ruby:main Apr 14, 2022
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.

Extension starts with an null is not an object Exception
2 participants