MCPcopy
hub / github.com/cortexlabs/cortex / Message

Function Message

pkg/lib/errors/message.go:41–45  ·  view source on GitHub ↗
(err error, strs ...string)

Source from the content-addressed store, hash-verified

39}
40
41func Message(err error, strs ...string) string {
42 wrappedErr := Wrap(err, strs...)
43 errStr := wrappedErr.Error()
44 return strings.TrimSpace(errStr)
45}
46
47func MessageFirstLine(err error, strs ...string) string {
48 wrappedErr := Wrap(err, strs...)

Callers 15

getDockerAuthStrFromK8sFunction · 0.92
testConfigFunction · 0.92
ReadPromptFunction · 0.92
ErrorInvalidYAMLFunction · 0.92
EventFromExceptionFunction · 0.92
OpenFunction · 0.92
OpenFileFunction · 0.92
CreateFunction · 0.92
ReadFileBytesErrPathFunction · 0.92
CreateFileFunction · 0.92
WriteFileFromReaderFunction · 0.92
WriteFileFunction · 0.92

Calls 2

WrapFunction · 0.85
ErrorMethod · 0.80

Tested by 1

testConfigFunction · 0.74