MCPcopy
hub / github.com/apache/devlake / Format

Method Format

backend/core/errors/message.go:72–80  ·  view source on GitHub ↗

Format formats the messages into a single string

()

Source from the content-addressed store, hash-verified

70
71// Format formats the messages into a single string
72func (m Messages) Format() string {
73 msgs := []string{}
74 for _, m := range m {
75 if msg := m.getMessage(); msg != "" {
76 msgs = append(msgs, msg)
77 }
78 }
79 return strings.Join(msgs, "\ncaused by: ")
80}
81
82// Get gets the main (top-level) (or first non-empty message if exists) message of the Messages
83func (m Messages) Get() string {

Callers 15

RunTaskFunction · 0.80
TestCrdbErrorImplFunction · 0.80
UpMethod · 0.80
StringMethod · 0.80
StringMethod · 0.80
CreateSnapshotMethod · 0.80
ExportRawTableMethod · 0.80
formatDbValueFunction · 0.80
PatchBasicBlueprintV2Method · 0.80
TestPagerDutyPluginFunction · 0.80
runPipelineFunction · 0.80

Calls 1

getMessageMethod · 0.80

Tested by 5

TestCrdbErrorImplFunction · 0.64
TestPagerDutyPluginFunction · 0.64