| Index: PRESUBMIT.py
|
| diff --git a/PRESUBMIT.py b/PRESUBMIT.py
|
| index 95fea4f8dbfddd6054492980d9ccd4fa242d96b9..3fd8314f0b8074a82334481a0b753d777723c9e7 100644
|
| --- a/PRESUBMIT.py
|
| +++ b/PRESUBMIT.py
|
| @@ -196,10 +196,9 @@ def _CheckGNFormatted(input_api, output_api):
|
| try:
|
| subprocess.check_output(cmd)
|
| except subprocess.CalledProcessError:
|
| - fix = cmd[:]
|
| - fix[2] = '--in-place'
|
| + fix = 'gn format ' + f.LocalPath()
|
| results.append(output_api.PresubmitError(
|
| - '`%s` failed, try\n\t%s' % (' '.join(cmd), ' '.join(fix))))
|
| + '`%s` failed, try\n\t%s' % (' '.join(cmd), fix)))
|
| return results
|
|
|
|
|
|
|