mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-02-17 08:14:42 +04:00
fixed #1141
This commit is contained in:
parent
0245a67831
commit
247d45af05
3 changed files with 34 additions and 14 deletions
|
|
@ -4,12 +4,14 @@ from __future__ import unicode_literals
|
|||
|
||||
import contextlib
|
||||
import os.path
|
||||
import sys
|
||||
import traceback
|
||||
|
||||
import six
|
||||
|
||||
from pre_commit import five
|
||||
from pre_commit import output
|
||||
from pre_commit.constants import VERSION as pre_commit_version
|
||||
from pre_commit.store import Store
|
||||
|
||||
|
||||
|
|
@ -29,6 +31,9 @@ def _log_and_exit(msg, exc, formatted):
|
|||
five.to_bytes(msg), b': ',
|
||||
five.to_bytes(type(exc).__name__), b': ',
|
||||
_to_bytes(exc), b'\n',
|
||||
_to_bytes('pre-commit.version={}\n'.format(pre_commit_version)),
|
||||
_to_bytes('sys.version={}\n'.format(sys.version.replace('\n', ' '))),
|
||||
_to_bytes('sys.executable={}\n'.format(sys.executable)),
|
||||
))
|
||||
output.write(error_msg)
|
||||
store = Store()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue