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

fix bugs with plugin parsing #216

Merged
merged 1 commit into from
Mar 3, 2016
Merged

fix bugs with plugin parsing #216

merged 1 commit into from
Mar 3, 2016

Conversation

jdx
Copy link
Contributor

@jdx jdx commented Mar 3, 2016

If the plugin fails to parse it formerly would just exit silently and
all plugins would fail to install.

Also, if the plugin output anything on stderr it would try to parse it
and also fail.

This redirects stderr out to the terminal and shows the parsing error if
any.

@jdx
Copy link
Contributor Author

jdx commented Mar 3, 2016

ready for review @ransombriggs

if err != nil {
return nil, fmt.Errorf("Error reading plugin: %s\n%s\n%s", name, err, string(output))
return nil, fmt.Errorf("Error reading plugin: %s\n", name)

Choose a reason for hiding this comment

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

@dickeyxxx why did you remove err from the Error reading plugin string?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh I guess I can include that part

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

If the plugin fails to parse it formerly would just exit silently and
all plugins would fail to install.

Also, if the plugin output anything on stderr it would try to parse it
and also fail.

This redirects stderr out to the terminal and shows the parsing error if
any.
@ransombriggs
Copy link

@dickeyxxx lgtm

jdx pushed a commit that referenced this pull request Mar 3, 2016
@jdx jdx merged commit 7751909 into master Mar 3, 2016
@jdx jdx deleted the fix-stderr-plugin-init branch March 3, 2016 22:00
jdx pushed a commit that referenced this pull request Jun 19, 2018
* Adjust 'heroku releases' output to fit terminal width

* Trigger CI
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.

None yet

2 participants