MCPcopy Index your code
hub / github.com/coder/coder / Friendly

Method Friendly

codersdk/client.go:512–519  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

510}
511
512func (e *Error) Friendly() string {
513 var sb strings.Builder
514 _, _ = fmt.Fprintf(&sb, "%s. %s", strings.TrimSuffix(e.Message, "."), e.Helper)
515 for _, err := range e.Validations {
516 _, _ = fmt.Fprintf(&sb, "\n- %s: %s", err.Field, err.Detail)
517 }
518 return sb.String()
519}
520
521func (e *Error) Error() string {
522 var builder strings.Builder

Callers 1

auditLogDescriptionFunction · 0.45

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected