mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-10 05:14:18 +00:00
Fix JSON decode error message
This commit is contained in:
parent
d71b52859b
commit
6b9265c96a
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ def check_json(argv=None):
|
||||||
try:
|
try:
|
||||||
simplejson.load(open(filename))
|
simplejson.load(open(filename))
|
||||||
except (simplejson.JSONDecodeError, UnicodeDecodeError) as exc:
|
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
|
retval = 1
|
||||||
return retval
|
return retval
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue