Index: build/android/gyp/find.py |
diff --git a/build/android/gyp/find.py b/build/android/gyp/find.py |
index 07132c7e953f30c908ad9cb34024e447b91d1c11..a9f1d49855674f15b9a846e6c850cd28160eda3b 100755 |
--- a/build/android/gyp/find.py |
+++ b/build/android/gyp/find.py |
@@ -19,6 +19,9 @@ def main(argv): |
options, directories = parser.parse_args(argv) |
for d in directories: |
+ if not os.path.exists(d): |
+ print >> sys.stderr, '%s does not exist' % d |
+ return 1 |
for root, _, filenames in os.walk(d): |
for f in fnmatch.filter(filenames, options.pattern): |
print os.path.join(root, f) |