MCPcopy Create free account
hub / github.com/bytemode/pitaya-notes / CodeFromError

Function CodeFromError

errors/errors.go:84–99  ·  view source on GitHub ↗

CodeFromError returns the code of error. If error is nil, return empty string. If error is not a pitaya error, returns unkown code

(err error)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

ReportTimingFromCtxFunction · 0.92
TestCodeFromErrorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestCodeFromErrorFunction · 0.68