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

Unified Diff: vpython/application/subcommand_verify.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/subcommand_install.go ('k') | vpython/cipd/cipd.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/application/subcommand_verify.go
diff --git a/vpython/application/subcommand_verify.go b/vpython/application/subcommand_verify.go
index 47e7e5011a2e003ce2d59dd2c0e29352ca42825a..6fd3831206239f34ce46c6315348ccc87f16957b 100644
--- a/vpython/application/subcommand_verify.go
+++ b/vpython/application/subcommand_verify.go
@@ -40,7 +40,7 @@ func (cr *verifyCommandRun) Run(app subcommands.Application, args []string, env
return run(c, func(c context.Context) error {
// Make sure that we can resolve the referenced specifiction.
if err := a.opts.ResolveSpec(c); err != nil {
- return errors.Annotate(err).Reason("failed to resolve specification").Err()
+ return errors.Annotate(err, "failed to resolve specification").Err()
}
s := a.opts.EnvConfig.Spec
@@ -54,7 +54,7 @@ func (cr *verifyCommandRun) Run(app subcommands.Application, args []string, env
// Verify that the spec can be normalized. This may modify it, so we will
// normalize a clone.
if err := spec.NormalizeSpec(s.Clone(), nil); err != nil {
- return errors.Annotate(err).Reason("failed to normalize specification").Err()
+ return errors.Annotate(err, "failed to normalize specification").Err()
}
renderedSpec := spec.Render(s)
« no previous file with comments | « vpython/application/subcommand_install.go ('k') | vpython/cipd/cipd.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698