summaryrefslogtreecommitdiffstats
path: root/tools/sync-webkit-git.py
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-19 17:02:16 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-19 17:02:16 +0000
commit0799ce51ae59678cdb4b3c0fcd1b324b04551cc3 (patch)
tree7e06afcac1fe2f2ccdfc56d18a47d3667261752d /tools/sync-webkit-git.py
parent7a20911efec922a7b37e1d79c2d10a6b45b73d50 (diff)
downloadchromium_src-0799ce51ae59678cdb4b3c0fcd1b324b04551cc3.zip
chromium_src-0799ce51ae59678cdb4b3c0fcd1b324b04551cc3.tar.gz
chromium_src-0799ce51ae59678cdb4b3c0fcd1b324b04551cc3.tar.bz2
Better error message when tools/sync-webkit-git.py is run from wrong dir.
Contributed by Hans Wennborg <hans@chromium.org>. BUG=41695 TEST=Ran the script from different dirs to cover all paths through affected code. Review URL: http://codereview.chromium.org/1582033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@44921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/sync-webkit-git.py')
-rwxr-xr-xtools/sync-webkit-git.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/tools/sync-webkit-git.py b/tools/sync-webkit-git.py
index 26490c5..4b99357 100755
--- a/tools/sync-webkit-git.py
+++ b/tools/sync-webkit-git.py
@@ -114,7 +114,12 @@ def UpdateCurrentCheckoutIfAppropriate():
def main():
if not os.path.exists('third_party/WebKit/.git'):
- print "ERROR: third_party/WebKit appears to not be under git control."
+ if os.path.exists('third_party/WebKit'):
+ print "ERROR: third_party/WebKit appears to not be under git control."
+ else:
+ print "ERROR: third_party/WebKit could not be found."
+ print "Did you run this script from the right directory?"
+
print "See http://code.google.com/p/chromium/wiki/UsingWebKitGit for"
print "setup instructions."
return