Our C bindings return LDStatus, which wraps an Error enum. This is an opaque type so that we could modify how the error was represented.
That time has come, and I've modified the underlying Error type to be a variant<ErrorCode, string>. This supports reporting arbitrary string messages. The immediate use case is reporting errors from the Redis integration, which doesn't use status codes.
Our C bindings return
LDStatus
, which wraps anError
enum. This is an opaque type so that we could modify how the error was represented.That time has come, and I've modified the underlying
Error
type to be avariant<ErrorCode, string>
. This supports reporting arbitrary string messages. The immediate use case is reporting errors from the Redis integration, which doesn't use status codes.