diff options
Diffstat (limited to 'deps/v8/tools/presubmit.py')
-rwxr-xr-x | deps/v8/tools/presubmit.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/deps/v8/tools/presubmit.py b/deps/v8/tools/presubmit.py index fda7ba96e..7af6e3d0d 100755 --- a/deps/v8/tools/presubmit.py +++ b/deps/v8/tools/presubmit.py @@ -211,7 +211,12 @@ class CppLintProcessor(SourceFileProcessor): if exists(local_cpplint): command = ['python', local_cpplint, '--filter', filt] + join(files) - process = subprocess.Popen(command, stderr=subprocess.PIPE) + try: + process = subprocess.Popen(command, stderr=subprocess.PIPE) + except: + print('Error running cpplint.py. Please make sure you have depot_tools' + + ' in your $PATH. Lint check skipped.') + return True LINT_ERROR_PATTERN = re.compile(r'^(.+)[:(]\d+[:)]') while True: out_line = process.stderr.readline() |