diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 17:02:16 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-19 17:02:16 +0000 |
commit | 0799ce51ae59678cdb4b3c0fcd1b324b04551cc3 (patch) | |
tree | 7e06afcac1fe2f2ccdfc56d18a47d3667261752d /tools/sync-webkit-git.py | |
parent | 7a20911efec922a7b37e1d79c2d10a6b45b73d50 (diff) | |
download | chromium_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-x | tools/sync-webkit-git.py | 7 |
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 |