| Index: PRESUBMIT.py
|
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py
|
| index 8a6454358882c90b10928d80b7300d602e7f01c6..3c1b7ff9fde749fa54dd63239a193a5090878ded 100644
|
| --- a/PRESUBMIT.py
|
| +++ b/PRESUBMIT.py
|
| @@ -1069,9 +1069,10 @@ def _CheckJSONParsability(input_api, output_api):
|
| with open(fpath.LocalPath(), 'r') as f:
|
| try:
|
| input_api.json.load(f)
|
| - except ValueError:
|
| + except ValueError as e:
|
| results.append(output_api.PresubmitError(
|
| - "File %r does not parse as valid JSON" % (fpath.LocalPath())
|
| + "File %r does not parse as valid JSON:\n %s"
|
| + % (fpath.LocalPath(), e.args[0])
|
| ))
|
| return results
|
|
|
|
|