Skip to content

Commit

Permalink
Merge pull request #1496 from pallets/fix-typo
Browse files Browse the repository at this point in the history
ClickException goes to stderr
  • Loading branch information
davidism committed Mar 9, 2020
2 parents 913ddf2 + 0dbffb3 commit c0329ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions CHANGES.rst
@@ -1,5 +1,14 @@
.. currentmodule:: click

Version 7.1.1
-------------

Unreleased

- Fix ``ClickException`` output going to stdout instead of stderr.
:issue:`1495`


Version 7.1
-----------

Expand Down
2 changes: 1 addition & 1 deletion src/click/exceptions.py
Expand Up @@ -39,7 +39,7 @@ def __str__(self):
def show(self, file=None):
if file is None:
file = get_text_stderr()
echo("Error: {}".format(self.format_message(), file=file))
echo("Error: {}".format(self.format_message()), file=file)


class UsageError(ClickException):
Expand Down

0 comments on commit c0329ac

Please sign in to comment.