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

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

Issue 2963503003: [errors] Greatly simplify common/errors package. (Closed)
Patch Set: all tests passing 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: logdog/client/cli/main.go
diff --git a/logdog/client/cli/main.go b/logdog/client/cli/main.go
index caba45cb7d8ca3a480584cccbe29767fce9f027f..fbf4343d8b0aceb3a8f7b5bc944da31eae265916 100644
--- a/logdog/client/cli/main.go
+++ b/logdog/client/cli/main.go
@@ -123,7 +123,7 @@ func (a *application) resolveHost(host string) (string, error) {
func (a *application) coordinatorClient(host string) (*coordinator.Client, error) {
host, err := a.resolveHost(host)
if err != nil {
- return nil, errors.Annotate(err).Err()
+ return nil, errors.Annotate(err, "").Err()
}
// Get our Coordinator client instance.

Powered by Google App Engine
This is Rietveld 408576698