func typeMismatchError()

in pkg/confidence/utils.go [196:208]


func typeMismatchError(defaultValue interface{}) InterfaceResolutionDetail {
	err := NewTypeMismatchResolutionError(
		"Unable to extract property value from resolve response")
	return InterfaceResolutionDetail{
		Value: defaultValue,
		ResolutionDetail: ResolutionDetail{
			Variant:      "",
			Reason:       ErrorReason,
			ErrorCode:    err.code,
			ErrorMessage: err.message,
			FlagMetadata: nil,
		}}
}