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

Unified Diff: cipd/client/cli/main.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: more refactor 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
Index: cipd/client/cli/main.go
diff --git a/cipd/client/cli/main.go b/cipd/client/cli/main.go
index be1c65f897c1986e92652109aeb492c224669639..bad990811272ace136dac3c1e0d9274cdeb324ee 100644
--- a/cipd/client/cli/main.go
+++ b/cipd/client/cli/main.go
@@ -25,9 +25,9 @@ import (
"github.com/luci/luci-go/common/auth"
"github.com/luci/luci-go/common/cli"
- "github.com/luci/luci-go/common/errors"
"github.com/luci/luci-go/common/logging"
"github.com/luci/luci-go/common/logging/gologger"
+ "github.com/luci/luci-go/common/retry/transient"
"github.com/luci/luci-go/client/authcli"
@@ -843,7 +843,7 @@ func (c *checkUpdatesRun) Run(a subcommands.Application, args []string, env subc
_, actions, err := ensurePackages(ctx, c.rootDir, c.ensureFile, true, c.clientOptions)
if err != nil {
ret := c.done(actions, err)
- if errors.IsTransient(err) {
+ if transient.Tag.In(err) {
return ret // fail as usual
}
return 0 // on fatal errors ask puppet to run 'ensure' for real
« no previous file with comments | « cipd/client/cipd/client.go ('k') | common/auth/auth.go » ('j') | common/errors/tags.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698