(e *ErrorDetails)
| 139 | } |
| 140 | |
| 141 | func 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 | |
| 149 | func init() { |
| 150 | errors.ErrorDetailsToProto = func(e errors.ErrorDetails) proto.Message { |