Skip to content

Supress duplicate errors.#24

Merged
jharshman merged 1 commit intomasterfrom
supress-duplicate-errors
Dec 4, 2025
Merged

Supress duplicate errors.#24
jharshman merged 1 commit intomasterfrom
supress-duplicate-errors

Conversation

@jharshman
Copy link
Copy Markdown
Owner

Duplicate errors result from returning error from a subcommand where the
root command also prints the error. This is weird behavior for Cobra but
it is supressed with a simple option.

This PR also adds a taskfile.

@jharshman jharshman force-pushed the supress-duplicate-errors branch 3 times, most recently from 36d2f8d to 707aad7 Compare December 4, 2025 03:15
Duplicate errors result from returning error from a subcommand where the
root command also prints the error. This is weird behavior for Cobra but
it is supressed with a simple option.

This PR also adds a taskfile.
@jharshman jharshman force-pushed the supress-duplicate-errors branch from 707aad7 to 63df852 Compare December 4, 2025 03:18
@jharshman jharshman merged commit 45651c8 into master Dec 4, 2025
2 checks passed
@jharshman jharshman deleted the supress-duplicate-errors branch December 4, 2025 03:21
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.

1 participant