MCPcopy Create free account
hub / github.com/TheThingsNetwork/lorawan-stack / ErrorDetailsFromProto

Function ErrorDetailsFromProto

pkg/ttnpb/errors.go:141–147  ·  view source on GitHub ↗
(e *ErrorDetails)

Source from the content-addressed store, hash-verified

139}
140
141func ErrorDetailsFromProto(e *ErrorDetails) errors.ErrorDetails {
142 d, ok := errors.From(errorDetails{ErrorDetails: e})
143 if !ok {
144 panic(fmt.Sprintf("Failed to decode error details")) // Likely a bug in ttn
145 }
146 return d
147}
148
149func init() {
150 errors.ErrorDetailsToProto = func(e errors.ErrorDetails) proto.Message {

Callers 5

TestFlowFunction · 0.92
FrontendFunction · 0.92
pathErrorsMethod · 0.92
FromGRPCStatusFunction · 0.85
initFunction · 0.85

Calls 1

FromFunction · 0.92

Tested by 1

TestFlowFunction · 0.74