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

Unified Diff: gcl.py

Issue 3332017: Add a check when people specify wrong change list name to give a meaningful message. (Closed)
Patch Set: oops Created 10 years, 3 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: gcl.py
diff --git a/gcl.py b/gcl.py
index 3925723f2caaa28cb9278bb4394bf5aa746185fc..0f4712e47cfec9768a9a80db699afdcf6b9f744b 100755
--- a/gcl.py
+++ b/gcl.py
@@ -959,6 +959,8 @@ def CMDchange(args):
"directory.")
if len(args) == 2:
+ if not os.path.isfile(args[1]):
+ ErrorExit('The change "%s" doesn\'t exist.' % args[1])
f = open(args[1], 'rU')
override_description = f.read()
f.close()
« 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