mirror of
https://github.com/PyCQA/flake8.git
synced 2026-04-07 21:44:18 +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)
|
LOG.exception(exc)
|
||||||
self.catastrophic_failure = True
|
self.catastrophic_failure = True
|
||||||
except exceptions.ExecutionError as exc:
|
except exceptions.ExecutionError as exc:
|
||||||
print("There was a critical error during execution of Flake8:")
|
print("There was a critical error during execution of Flake8:", file=sys.stderr)
|
||||||
print(exc)
|
print(exc, file=sys.stderr)
|
||||||
LOG.exception(exc)
|
LOG.exception(exc)
|
||||||
self.catastrophic_failure = True
|
self.catastrophic_failure = True
|
||||||
except exceptions.EarlyQuit:
|
except exceptions.EarlyQuit:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue