Skip to content

Commit

Permalink
Clarify publication error text a bit (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
KonstantAnxiety authored Apr 26, 2024
1 parent af8fbef commit d0e0ab7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/dl_api_lib/dl_api_lib/public/entity_usage_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ def ensure_dataset_can_be_used(
for conn_id, exc in conn_validation_exc_map.items():
LOGGER.info("Connection %s is not allowed to be used in public env: %s", conn_id, exc)

# TODO FIX: Clarify error messages
raise EntityUsageNotAllowed("Dataset data are not materialized")
# TODO FIX: Clarify error messages: add the details that are logged above
raise EntityUsageNotAllowed("The publication of this object or some of its dependencies is not allowed")
else:
raise EntityUsageNotAllowed(f"Unexpected data source role resolved for dataset {dataset.uuid}")

Expand Down

0 comments on commit d0e0ab7

Please sign in to comment.