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

Unified Diff: vpython/venv/prune.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/venv/iterator.go ('k') | vpython/venv/system_posix.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/venv/prune.go
diff --git a/vpython/venv/prune.go b/vpython/venv/prune.go
index f00004567a62a8f3271856a3a161f65f154eebf9..5a786ec7624af7978e19fdb1b77a55a4969f441b 100644
--- a/vpython/venv/prune.go
+++ b/vpython/venv/prune.go
@@ -84,10 +84,8 @@ func prune(c context.Context, cfg *Config, exempt stringset.Set) error {
logging.WithError(err).Debugf(c, "Environment [%s] is in use.", e.Name)
default:
- err = errors.Annotate(err).Reason("failed to prune file: %(name)s").
- D("name", e.Name).
- D("dir", e.Config.BaseDir).
- Err()
+ err = errors.Annotate(err, "failed to prune file: %s", e.Name).
+ InternalReason("dir(%q)", e.Config.BaseDir).Err()
allErrs = append(allErrs, err)
}
return nil
« no previous file with comments | « vpython/venv/iterator.go ('k') | vpython/venv/system_posix.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698