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

Errors parsing tags not printed to Stderr #132

Closed
anacrolix opened this issue Mar 25, 2015 · 2 comments
Closed

Errors parsing tags not printed to Stderr #132

anacrolix opened this issue Mar 25, 2015 · 2 comments

Comments

@anacrolix
Copy link

Errors due to bad tags (ErrTag) aren't printed to Stderr, per PrintErrors option.

@zimmski
Copy link
Contributor

zimmski commented Mar 25, 2015

This must be discussed with @jessevdk. The documentation states "PrintErrors prints any errors which occurred during parsing to os.Stderr." So personally I see this as a "setup" error and not as parsing error as in argument parsing.

@jessevdk
Copy link
Owner

This is intentional because it is not a parsing error (i.e. something the user of your program did wrong), but a programmer error. Don't forget to check your errors.

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