MCPcopy Index your code
hub / github.com/coder/coder / convertError

Function convertError

coderd/healthcheck/healthcheck.go:319–325  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

317}
318
319func convertError(err error) *string {
320 if err != nil {
321 return ptr.Ref(err.Error())
322 }
323
324 return nil
325}

Callers 1

RunMethod · 0.70

Calls 2

RefFunction · 0.92
ErrorMethod · 0.45

Tested by

no test coverage detected