mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-03-31 10:36:54 +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:
|
||||
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