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

Unified Diff: logdog/common/storage/entry.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/common/storage/bigtable/logdog_bigtable_test/main.go ('k') | logdog/common/types/streamaddr.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: logdog/common/storage/entry.go
diff --git a/logdog/common/storage/entry.go b/logdog/common/storage/entry.go
index 2ff78ff2c7f31681a36c05d25984000681c373b0..5df9607c22db3c753ac9849b90145647836deab2 100644
--- a/logdog/common/storage/entry.go
+++ b/logdog/common/storage/entry.go
@@ -68,7 +68,7 @@ func (e *Entry) GetLogEntry() (*logpb.LogEntry, error) {
var le logpb.LogEntry
if err := proto.Unmarshal(e.D, &le); err != nil {
- return nil, errors.Annotate(err).Reason("failed to unmarshal").Err()
+ return nil, errors.Annotate(err, "failed to unmarshal").Err()
}
e.le = &le
}
« no previous file with comments | « logdog/common/storage/bigtable/logdog_bigtable_test/main.go ('k') | logdog/common/types/streamaddr.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698