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

Unified Diff: common/tsmon/config.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 | « common/system/prober/probe.go ('k') | common/tsmon/iface.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: common/tsmon/config.go
diff --git a/common/tsmon/config.go b/common/tsmon/config.go
index 26d63c08725cc54ff2fda2a02fdb1df17a592ef8..1fc6e2e0e48d5e996415afb7e104627e6213486c 100644
--- a/common/tsmon/config.go
+++ b/common/tsmon/config.go
@@ -37,7 +37,7 @@ func loadConfig(path string) (config, error) {
decoder := json.NewDecoder(file)
if err = decoder.Decode(&ret); err != nil {
- return ret, errors.Annotate(err).Reason("failed to decode file").Err()
+ return ret, errors.Annotate(err, "failed to decode file").Err()
}
return ret, nil
@@ -48,7 +48,7 @@ func loadConfig(path string) (config, error) {
default:
// An unexpected failure occurred.
- return ret, errors.Annotate(err).Reason("failed to open file").Err()
+ return ret, errors.Annotate(err, "failed to open file").Err()
}
}
« no previous file with comments | « common/system/prober/probe.go ('k') | common/tsmon/iface.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698