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

Unified Diff: deploytool/cmd/luci_deploy/title.go

Issue 2963503003: [errors] Greatly simplify common/errors package. (Closed)
Patch Set: fix nits Created 3 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 | « deploytool/cmd/luci_deploy/staging.go ('k') | deploytool/cmd/luci_deploy/tools.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: deploytool/cmd/luci_deploy/title.go
diff --git a/deploytool/cmd/luci_deploy/title.go b/deploytool/cmd/luci_deploy/title.go
index f2e77dbd5ce90396a119cae52bade88d0b01dcac..082a1b39129a55620920bbc3371807e0ecdef12c 100644
--- a/deploytool/cmd/luci_deploy/title.go
+++ b/deploytool/cmd/luci_deploy/title.go
@@ -21,8 +21,7 @@ func (t title) validate() error {
idx := 0
for _, r := range t {
if !(unicode.IsLetter(r) || unicode.IsNumber(r) || r == '-') {
- return errors.Reason("character at %(pos)d (%(char)c) is not permitted in a title").
- D("pos", idx).D("char", r).Err()
+ return errors.Reason("character at %d (%c) is not permitted in a title", idx, r).Err()
}
idx++
}
« no previous file with comments | « deploytool/cmd/luci_deploy/staging.go ('k') | deploytool/cmd/luci_deploy/tools.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698