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: pass output to callback if out is not a file #725

Closed
wants to merge 1 commit into from

Conversation

joscha
Copy link

@joscha joscha commented Mar 24, 2017

Currently, the output is not passed to the callback if the output target is not a file. It is written to stdout even with programmatic access.

This pull request fixes that by only writing to stdout if invoked non-programmatically and only passing the output to the callback if the target is not a file.

fixes #724

@joscha
Copy link
Author

joscha commented Mar 24, 2017

coverage seem to have failed on Node.js: 6, CXX=g++-4.8

@dcodeIO
Copy link
Member

dcodeIO commented Mar 24, 2017

See: #724

Basically, I applied your fix to both pbjs and pbts. Thanks!

@joscha
Copy link
Author

joscha commented Mar 24, 2017

Nice! Too bad I overlooked pbts and thus don't get the contributors badge 😝

@joscha joscha closed this Mar 24, 2017
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.

Programmatic execution prints to stdout
2 participants