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: remove doubled error message #39

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mkotowski
Copy link
Contributor

Hi! A very minor issue. Unhandled errors are printed twice, once on stderr by cobra and for the second time in main() to stdout,

Useful link describing the behavior of built-in error printing in cobra: https://github.com/spf13/cobra/blob/main/site/content/user_guide.md#error-message-prefix

Screenshot_20241129_222135

spf13/cobra already handles printing of non-nil error on stderr,
the removed print was repeating the same message on stdout after
cobra printed both the error and usage.

Signed-off-by: Michał Kotowski <[email protected]>
@coveralls
Copy link

Pull Request Test Coverage Report for Build 12090836108

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.1%) to 88.032%

Totals Coverage Status
Change from base Build 12042365908: 0.1%
Covered Lines: 662
Relevant Lines: 752

💛 - Coveralls

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.

2 participants