MCPcopy Index your code
hub / github.com/apache/devlake / getPrettifiedMessage

Method getPrettifiedMessage

backend/core/errors/message.go:59–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57}
58
59func (m *errMessage) getPrettifiedMessage() string {
60 if len(m.msgs) == 0 {
61 return ""
62 }
63 if len(m.msgs) == 1 {
64 return m.msgs[0]
65 }
66 effectiveMsg := strings.Join(m.msgs, "\n=====================\n")
67 effectiveMsg = "\t" + strings.ReplaceAll(effectiveMsg, "\n", "\n\t")
68 return fmt.Sprintf("\ncombined messages: \n{\n%s\n}", effectiveMsg)
69}
70
71// Format formats the messages into a single string
72func (m Messages) Format() string {

Callers 1

newCrdbErrorFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected