diff options
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/fetch-clang-format | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/fetch-clang-format b/bin/fetch-clang-format index 78b5c05221..98216d835c 100755 --- a/bin/fetch-clang-format +++ b/bin/fetch-clang-format @@ -19,7 +19,11 @@ def fetch(target): 'buildtools/mac/' + target if 'darwin' in sys.platform else \ 'buildtools/win/'+ target + '.exe' - sha1 = open(target_path + '.sha1').read().strip() + sha1_path = target_path + '.sha1' + if not os.path.exists(sha1_path): + print sha1_path, 'is missing. Did you run `tools/git-sync-deps`?' + exit(1) + sha1 = open(sha1_path).read().strip() def sha1_of_file(path): h = hashlib.sha1() |