MCPcopy
hub / github.com/yuk7/wsldl / FormatError

Function FormatError

src/lib/errutil/errutil.go:68–73  ·  view source on GitHub ↗

FormatError formats an error for CLI output.

(err error)

Source from the content-addressed store, hash-verified

66
67// FormatError formats an error for CLI output.
68func FormatError(err error) string {
69 if err == nil {
70 return "ERR: unknown error"
71 }
72 return "ERR: " + err.Error()
73}
74
75// MustExecutable returns the current executable path or panics when unavailable.
76func MustExecutable() string {

Callers 1

TestFormatErrorFunction · 0.85

Calls 1

ErrorMethod · 0.45

Tested by 1

TestFormatErrorFunction · 0.68