Skip to content

Commit c68d240

Browse files
committed
polish
1 parent 5717214 commit c68d240

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

splitio/client/input_validator.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,8 +248,8 @@ def validate_feature_name(feature_name, should_validate_existance, split_storage
248248

249249
if should_validate_existance and split_storage.get(feature_name) is None:
250250
_LOGGER.warning(
251-
"%s: you passed feature flag \"%s\" that does not exist in this environment, "
252-
"please double check what Splits exist in the web console.",
251+
"%s: you passed \"%s\" that does not exist in this environment, "
252+
"please double check what Feature flags exist in the Split user interface.",
253253
method_name,
254254
feature_name
255255
)
@@ -283,7 +283,7 @@ def validate_traffic_type(traffic_type, should_validate_existance, split_storage
283283
284284
:param traffic_type: traffic_type to be checked
285285
:type traffic_type: str
286-
:param should_validate_existance: Whether to check for existante in the split storage.
286+
:param should_validate_existance: Whether to check for existante in the feature flag storage.
287287
:type should_validate_existance: bool
288288
:param split_storage: Split storage.
289289
:param split_storage: splitio.storages.SplitStorage
@@ -301,7 +301,7 @@ def validate_traffic_type(traffic_type, should_validate_existance, split_storage
301301

302302
if should_validate_existance and not split_storage.is_valid_traffic_type(traffic_type):
303303
_LOGGER.warning(
304-
'track: Traffic Type %s does not have any corresponding Splits in this environment, '
304+
'track: Traffic Type %s does not have any corresponding Feature flags in this environment, '
305305
'make sure you\'re tracking your events to a valid traffic type defined '
306306
'in the Split console.',
307307
traffic_type
@@ -360,8 +360,8 @@ def validate_manager_feature_name(feature_name, should_validate_existance, split
360360

361361
if should_validate_existance and split_storage.get(feature_name) is None:
362362
_LOGGER.warning(
363-
"split: you passed feature flag \"%s\" that does not exist in this environment, "
364-
"please double check what Splits exist in the web console.",
363+
"split: you passed \"%s\" that does not exist in this environment, "
364+
"please double check what Feature flags exist in the Split user interface.",
365365
feature_name
366366
)
367367
return None
@@ -405,8 +405,8 @@ def validate_features_get_treatments( # pylint: disable=invalid-name
405405
valid_missing_features = set(f for f in filtered_features if split_storage.get(f) is None)
406406
for missing_feature in valid_missing_features:
407407
_LOGGER.warning(
408-
"%s: you passed feature flag \"%s\" that does not exist in this environment, "
409-
"please double check what Splits exist in the web console.",
408+
"%s: you passed \"%s\" that does not exist in this environment, "
409+
"please double check what Feature flags exist in the Split user interface.",
410410
method_name,
411411
missing_feature
412412
)

0 commit comments

Comments
 (0)