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

Unified Diff: common/errors/multierror.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: common/errors/multierror.go
diff --git a/common/errors/multierror.go b/common/errors/multierror.go
index 810a705b9ce7e86d51a855676307c6f8778004e2..976f08ef007c926c5cb54653ec13581f2c37c255 100644
--- a/common/errors/multierror.go
+++ b/common/errors/multierror.go
@@ -48,13 +48,12 @@ func (m MultiError) First() error {
return nil
}
-// StackContext implements StackContexter.
-func (m MultiError) StackContext() StackContext {
+func (m MultiError) stackContext() stackContext {
n, _ := m.Summary()
- return StackContext{
- InternalReason: "MultiError %(non-nil)d/%(total)d: following first non-nil error.",
- Data: Data{
+ return stackContext{
+ internalReason: "MultiError %(non-nil)d/%(total)d: following first non-nil error.",
+ data: Data{
"non-nil": {Value: n},
"total": {Value: len(m)},
},
« no previous file with comments | « common/errors/annotate.go ('k') | common/errors/tags.go » ('j') | common/errors/tags.go » ('J')

Powered by Google App Engine
This is Rietveld 408576698