You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### Description
The current error message when validating `cosmosdb_connection_string`
is misleading.
In the previous version it stated:
> "CosmosDB connection string **CAN BE EMPTY**"
when in fact the correct behavior is that it **cannot** be empty.
This PR updates the `ValueError` to properly reflect the restriction.
### Changes
```python
self._validate_enum_value(kind, CosmosDBVectorSearchType)
if not cosmosdb_connection_string:
raise ValueError("CosmosDB connection string can't be empty.")
self.cosmosdb_connection_string = cosmosdb_connection_string
self.cosmosdb_client = cosmosdb_client
```
### Expected Behavior
When the `cosmosdb_connection_string` parameter is empty, the following
clear error is raised:
```
ValueError: CosmosDB connection string can't be empty.
```
---------
Co-authored-by: graphite-app[bot] <96075541+graphite-app[bot]@users.noreply.github.com>
Co-authored-by: Mason Daugherty <[email protected]>
0 commit comments