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

Unified Diff: vpython/application/subcommand_delete.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/application/probe.go ('k') | vpython/application/subcommand_install.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/application/subcommand_delete.go
diff --git a/vpython/application/subcommand_delete.go b/vpython/application/subcommand_delete.go
index 7f387d333ba14b5b11eae967c420881049f47d63..b2b611764026efb1f8aa9ba40d54d07cb21bfd54 100644
--- a/vpython/application/subcommand_delete.go
+++ b/vpython/application/subcommand_delete.go
@@ -70,9 +70,7 @@ func (cr *deleteCommandRun) Run(app subcommands.Application, args []string, env
}
if failures > 0 {
- return errors.Reason("failed to delete %(count)d environment(s)").
- D("count", failures).
- Err()
+ return errors.Reason("failed to delete %d environment(s)", failures).Err()
}
return nil
})
« no previous file with comments | « vpython/application/probe.go ('k') | vpython/application/subcommand_install.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698