MCPcopy Index your code
hub / github.com/voidint/g / errstring

Function errstring

cli/cli.go:184–189  ·  view source on GitHub ↗

errstring formats error messages with consistent style.

(err error)

Source from the content-addressed store, hash-verified

182
183// errstring formats error messages with consistent style.
184func errstring(err error) string {
185 if err == nil {
186 return ""
187 }
188 return wrapstring(err.Error())
189}
190
191func wrapstring(str string) string {
192 if str == "" {

Callers 9

cleanFunction · 0.85
listRemoteFunction · 0.85
validateLsFlagFunction · 0.85
selfUpdateFunction · 0.85
installFunction · 0.85
selfUninstallFunction · 0.85
useFunction · 0.85
runMcpServerFunction · 0.85
Test_errstringFunction · 0.85

Calls 2

wrapstringFunction · 0.85
ErrorMethod · 0.45

Tested by 1

Test_errstringFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…