Skip to content
Myr

Correctly print exceptions to stderr

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

authored by sloria · committed by sloria · parent 8d801a1 · Browse files · 1 file+1 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

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:click/exceptions.py+1 added-1 removed
20 unmodified lines
2122 def show(self, file=None):23 if file is None:24 file = get_text_stderr()25 echo('Error: %s' % self.format_message())25 echo('Error: %s' % self.format_message(), file=file)262728class UsageError(ClickException):29 """An internal exception that signals a usage error. This typically
73 unmodified lines