mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-06 21:16:54 +00:00
Print errors to stderr
E.g.
There was a critical error during execution of Flake8:
Expected `per-file-ignores` to be a mapping from file exclude patterns to ignore codes.
Configured `per-file-ignores` setting:
…
This commit is contained in:
parent
121ea4f056
commit
5cc3f4577f
1 changed files with 2 additions and 2 deletions
|
|
@ -394,8 +394,8 @@ class Application(object):
|
|||
LOG.exception(exc)
|
||||
self.catastrophic_failure = True
|
||||
except exceptions.ExecutionError as exc:
|
||||
print("There was a critical error during execution of Flake8:")
|
||||
print(exc)
|
||||
print("There was a critical error during execution of Flake8:", file=sys.stderr)
|
||||
print(exc, file=sys.stderr)
|
||||
LOG.exception(exc)
|
||||
self.catastrophic_failure = True
|
||||
except exceptions.EarlyQuit:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue