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

Unified Diff: logdog/client/butlerlib/bootstrap/bootstrap.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 | « logdog/client/butler/streamserver/tcp.go ('k') | logdog/client/butlerlib/streamclient/tcp.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/client/butlerlib/bootstrap/bootstrap.go
diff --git a/logdog/client/butlerlib/bootstrap/bootstrap.go b/logdog/client/butlerlib/bootstrap/bootstrap.go
index ce39b7fb042fbc22a9aca642b8e3bb5164cf0ca4..789a1f1f5377c0182f1337dec8d3002ff95e36f1 100644
--- a/logdog/client/butlerlib/bootstrap/bootstrap.go
+++ b/logdog/client/butlerlib/bootstrap/bootstrap.go
@@ -74,7 +74,7 @@ func getFromEnv(env environ.Environment, reg *streamclient.Registry) (*Bootstrap
func (bs *Bootstrap) initializeClient(v string, reg *streamclient.Registry) error {
c, err := reg.NewClient(v)
if err != nil {
- return errors.Annotate(err).Reason("bootstrap: failed to create stream client [%(config)s]").D("config", v).Err()
+ return errors.Annotate(err, "bootstrap: failed to create stream client [%s]", v).Err()
}
bs.Client = c
return nil
« no previous file with comments | « logdog/client/butler/streamserver/tcp.go ('k') | logdog/client/butlerlib/streamclient/tcp.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698