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

Unified Diff: appengine/cr-buildbucket/errors.py

Issue 1082303002: buildbucket: put_batch endpoint (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: removed memcache import Created 5 years, 8 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 | « appengine/cr-buildbucket/api.py ('k') | appengine/cr-buildbucket/service.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/cr-buildbucket/errors.py
diff --git a/appengine/cr-buildbucket/errors.py b/appengine/cr-buildbucket/errors.py
index 912b980019e1c7ae7248a8754c3988e614fdd393..1200b0adca3ab108621ce93af97af541a40e618d 100644
--- a/appengine/cr-buildbucket/errors.py
+++ b/appengine/cr-buildbucket/errors.py
@@ -37,7 +37,8 @@ def validate_bucket_name(bucket):
if not bucket:
raise InvalidInputError('Bucket not specified')
if not isinstance(bucket, basestring):
- raise InvalidInputError('Bucket must be a string')
+ raise InvalidInputError(
+ 'Bucket must be a string. It is %s.' % type(bucket).__name__)
if not BUCKET_NAME_REGEX.match(bucket):
raise InvalidInputError(
'Bucket name "%s" does not match regular expression %s' %
« no previous file with comments | « appengine/cr-buildbucket/api.py ('k') | appengine/cr-buildbucket/service.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698