mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-29 18:16:52 +00:00
Merge pull request #150 from chriskuehl/fix-json-decode-error-message
Fix JSON decode error message
This commit is contained in:
commit
7539d8bd1a
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ def check_json(argv=None):
|
|||
try:
|
||||
simplejson.load(open(filename))
|
||||
except (simplejson.JSONDecodeError, UnicodeDecodeError) as exc:
|
||||
print('{0}: Failed to json encode ({1})'.format(filename, exc))
|
||||
print('{0}: Failed to json decode ({1})'.format(filename, exc))
|
||||
retval = 1
|
||||
return retval
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue