MCPcopy Create free account
hub / github.com/NV404/gova / toError

Function toError

errors.go:26–33  ·  view source on GitHub ↗
(r any)

Source from the content-addressed store, hash-verified

24}
25
26func toError(r any) error {
27 switch v := r.(type) {
28 case error:
29 return v
30 default:
31 return fmt.Errorf("%v", v)
32 }
33}

Callers 1

renderComponentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected