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

Unified Diff: common/errors/multierror.go

Issue 2951393002: [errors] de-specialize Transient in favor of Tags. (Closed)
Patch Set: copyright 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..0685a0ee82786710dd694f1768994b5b90dede6d 100644
--- a/common/errors/multierror.go
+++ b/common/errors/multierror.go
@@ -48,11 +48,10 @@ 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{
+ return stackContext{
InternalReason: "MultiError %(non-nil)d/%(total)d: following first non-nil error.",
Data: Data{
"non-nil": {Value: n},

Powered by Google App Engine
This is Rietveld 408576698