Skip to content

Commit

Permalink
Improve error message in component
Browse files Browse the repository at this point in the history
  • Loading branch information
xylar committed Sep 29, 2023
1 parent cde795e commit afbf9b5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions polaris/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ def remove_step(self, step):
The step to add if adding by Step object, not subdirectory
"""
if step.subdir not in self.steps:
raise ValueError(f'step {step.name} not in this component '
f'{self.name}')
raise ValueError(f'step {step.name} at {step.subdir} not in the '
f'{self.name} component')
self.steps.pop(step.subdir)

def add_config(self, config):
Expand Down

0 comments on commit afbf9b5

Please sign in to comment.