- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for MultiErrorFormat (0.15 sec)
-
pkg/util/istiomultierror/util.go
package istiomultierror import ( "fmt" "strings" "github.com/hashicorp/go-multierror" ) // MultiErrorFormat provides a format for multierrors. This matches the default format, but if there // is only one error we will not expand to multiple lines. func MultiErrorFormat() multierror.ErrorFormatFunc { return func(es []error) string { if len(es) == 1 { return es[0].Error() }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Sat Mar 09 05:07:21 UTC 2024 - 1.3K bytes - Viewed (0) -
pilot/pkg/security/authz/builder/logger.go
} func (al *AuthzLogger) AppendError(err error) { al.errMsg = multierror.Append(al.errMsg, err) } func (al *AuthzLogger) Report() { if al.errMsg != nil { al.errMsg.ErrorFormat = istiomultierror.MultiErrorFormat() authzLog.Errorf("Processed authorization policy: %s", al.errMsg) } if authzLog.DebugEnabled() && len(al.debugMsg) != 0 { out := strings.Join(al.debugMsg, "\n\t* ")
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.5K bytes - Viewed (0)