Skip to content

Commit

Permalink
fix: error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
agoose77 committed Aug 28, 2024
1 parent ebf4fc9 commit 36a8916
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hatch_deps_selector/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def initialize(self, version, build_data):
try:
variant = self.variants[variant_name]
except KeyError:
raise ValueError(f"Variant `{variant}` not found for build hook `{self.PLUGIN_NAME}`") from None
raise ValueError(f"Variant `{variant_name}` not found for build hook `{self.PLUGIN_NAME}`") from None

# And variant should be a table
if not isinstance(variant, dict):
Expand All @@ -51,7 +51,7 @@ def initialize(self, version, build_data):
try:
dependencies = variant["dependencies"]
except KeyError:
raise ValueError(f"Variant `{variant}` not found for build hook `{self.PLUGIN_NAME}`") from None
raise ValueError(f"Option `dependencies` not found in table `variants.{variant_name}` for build hook `{self.PLUGIN_NAME}`") from None

build_data["dependencies"].extend(dependencies)

0 comments on commit 36a8916

Please sign in to comment.