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

Error messages to stderr instead of stdout #5

Closed
chrisgulvik opened this issue Jun 29, 2017 · 3 comments
Closed

Error messages to stderr instead of stdout #5

chrisgulvik opened this issue Jun 29, 2017 · 3 comments

Comments

@chrisgulvik
Copy link

This is terrific you've made these available, so thank you for doing that!

It's more of a stylistic request to have error messages go to stderr rather than stdout.

In most scripts you already have the sys module imported, so you could just change the print statements to sys.stderr.write('ERROR: <msg> \n') but you would have to add that import sys line into the utils.py in order to change out the print_error() function: https://github.com/enasequence/enaBrowserTools/blob/master/python3/utils.py#L485-L487

@tseemann
Copy link

Yes, all errors and warnings should go to STDERR.

See https://www.ncbi.nlm.nih.gov/pmc/articles/PMC4076505/

@nicsilvester
Copy link
Contributor

Thanks. Good point and something I usually follow. Not sure why I didn't that day. Will add this fix to the next commit

@nicsilvester
Copy link
Contributor

Added into latest commit. Will be in next release: v1.3

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

No branches or pull requests

3 participants