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

Unified Diff: chrome-update.py

Issue 118379: Display proper error if root path argument is not an existing directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools/
Patch Set: Created 11 years, 6 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: chrome-update.py
===================================================================
--- chrome-update.py (revision 17851)
+++ chrome-update.py (working copy)
@@ -144,6 +144,9 @@
sys.exit(1)
chrome_root = args[0]
+ if not os.path.isdir(chrome_root):
+ Message("Path to chrome root (%s) not found." % repr(chrome_root))
+ sys.exit(1)
if not options.nosync:
rv = DoUpdate(chrome_root)
« 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