Skip to content

Commit

Permalink
made error message more user friendly
Browse files Browse the repository at this point in the history
  • Loading branch information
DevonFulcher committed Sep 19, 2023
1 parent 3835584 commit 5309a49
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ def create_time_dimension(
if len(group_by_item_name.entity_links) != 0 or group_by_item_name.time_granularity is not None:
raise ParseWhereFilterException(
f"Name is in an incorrect format: {time_dimension_name} "
f"When referencing {METRIC_TIME_ELEMENT_NAME}, the name should not have any dunders."
f"When referencing {METRIC_TIME_ELEMENT_NAME},"
"the name should not have any dunders (double underscores, or __)."
)
else:
if len(group_by_item_name.entity_links) != 1 or group_by_item_name.time_granularity is not None:
Expand Down

0 comments on commit 5309a49

Please sign in to comment.