Skip to content
Myr

Merge pull request #1496 from pallets/fix-typo

Before adoption: this commit came in with the history the project adopted, so no landing records it.

ClickException goes to stderr

authored by David Lord · committed by GitHub · parents 913ddf2, 0dbffb3 · Browse files · 2 files+10 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+10 added−1 removed

  • other:+10 added−1 removed

2 files+10 added−1 removed

modified:src/click/exceptions.py+1 added-1 removed
37 unmodified lines
3839 def show(self, file=None):40 if file is None:41 file = get_text_stderr()42 echo("Error: {}".format(self.format_message(), file=file))42 echo("Error: {}".format(self.format_message()), file=file)434445class UsageError(ClickException):46 """An internal exception that signals a usage error. This typically
207 unmodified lines
modified:CHANGES.rst+9 added
1.. currentmodule:: click23Version 7.1.14-------------56Unreleased78- Fix ``ClickException`` output going to stdout instead of stderr.9 :issue:`1495`101112Version 7.113-----------1415Released 2020-03-09
609 unmodified lines