Skip to content

Commit

Permalink
improve err message
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasrodes committed Sep 30, 2024
1 parent f59aaca commit d5c298a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apps/wizard/app_pages/chart_diff/chart_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,9 @@ def slug(self) -> str:
If slug of the chart miss-matches between target and source sessions, an error is displayed.
"""
if self.target_chart:
assert self.source_chart.slug == self.target_chart.slug, "Slug mismatch!"
assert (
self.source_chart.slug == self.target_chart.slug
), f"Slug mismatch! {self.source_chart.slug} != {self.target_chart.slug}"
return self.source_chart.slug or "no-slug"

@property
Expand Down

0 comments on commit d5c298a

Please sign in to comment.