Skip to content

Commit 0dbffb3

Browse files
committed
ClickException goes to stderr
1 parent 913ddf2 commit 0dbffb3

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

CHANGES.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
.. currentmodule:: click
22

3+
Version 7.1.1
4+
-------------
5+
6+
Unreleased
7+
8+
- Fix ``ClickException`` output going to stdout instead of stderr.
9+
:issue:`1495`
10+
11+
312
Version 7.1
413
-----------
514

src/click/exceptions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __str__(self):
3939
def show(self, file=None):
4040
if file is None:
4141
file = get_text_stderr()
42-
echo("Error: {}".format(self.format_message(), file=file))
42+
echo("Error: {}".format(self.format_message()), file=file)
4343

4444

4545
class UsageError(ClickException):

0 commit comments

Comments
 (0)