Skip to content

bpo-43316: gzip: CLI uses non-zero return code on error.#24647

Merged
methane merged 2 commits intopython:masterfrom
rhpvorderman:bpo-43316
Feb 25, 2021
Merged

bpo-43316: gzip: CLI uses non-zero return code on error.#24647
methane merged 2 commits intopython:masterfrom
rhpvorderman:bpo-43316

Conversation

@rhpvorderman
Copy link
Contributor

@rhpvorderman rhpvorderman commented Feb 25, 2021

Exit code is now 1 instead of 0. A message is printed to stderr instead of stdout. This is
the proper behaviour for a tool that can be used in scripts.

In my opinion this change should be backported to all currently supported versions of python. Exiting with 0 upon error is not acceptable behaviour for a tool. Luckily, I think the backport will be quite easy and I am happy to do it.

https://bugs.python.org/issue43316

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants