Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(116)

Unified Diff: PRESUBMIT.py

Issue 1860803003: Better error for checkdeps. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: PRESUBMIT.py
diff --git a/PRESUBMIT.py b/PRESUBMIT.py
index 819c4e64fdcd2c4592c0332f61bd4c1141e1e165..111abb03b0dfdaa9500b66a287ec997a6da0d16c 100644
--- a/PRESUBMIT.py
+++ b/PRESUBMIT.py
@@ -50,6 +50,9 @@ def _CheckUnwantedDependencies(input_api, output_api):
import checkdeps
from cpp_checker import CppChecker
from rules import Rule
+ except ImportError:
+ return [output_api.PresubmitError(
+ 'Unable to run checkdeps, does pdfium/buildtools/checkdeps exist?')]
finally:
# Restore sys.path to what it was before.
sys.path = original_sys_path
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698