MCPcopy Index your code
hub / github.com/cortexlabs/cortex / ErrorStr

Function ErrorStr

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

Source from the content-addressed store, hash-verified

34}
35
36func ErrorStr(err error, strs ...string) string {
37 wrappedErr := Wrap(err, strs...)
38 return "error: " + strings.TrimSpace(Message(wrappedErr))
39}
40
41func Message(err error, strs ...string) string {
42 wrappedErr := Wrap(err, strs...)

Callers 3

DeployFunction · 0.92
PrintErrorFunction · 0.85
PrintErrorForUserFunction · 0.85

Calls 2

WrapFunction · 0.85
MessageFunction · 0.85

Tested by

no test coverage detected