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

Unified Diff: vpython/spec/spec.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 | « vpython/spec/load.go ('k') | vpython/venv/config.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/spec/spec.go
diff --git a/vpython/spec/spec.go b/vpython/spec/spec.go
index a675f3263d15173df10a03d462725142ce397b29..36db83a97547dec5275982fcc2cfcbba6c7cdd1b 100644
--- a/vpython/spec/spec.go
+++ b/vpython/spec/spec.go
@@ -70,9 +70,7 @@ func NormalizeSpec(spec *vpython.Spec, tags []*vpython.PEP425Tag) error {
// immediate repetitions.
for i, pkg := range spec.Wheel {
if i > 0 && pkg.Name == spec.Wheel[i-1].Name {
- return errors.Reason("duplicate spec entries for package %(path)q").
- D("name", pkg.Name).
- Err()
+ return errors.Reason("duplicate spec entries for package %q", pkg.Name).Err()
}
}
« no previous file with comments | « vpython/spec/load.go ('k') | vpython/venv/config.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698