Skip to content

Commit

Permalink
style(task): improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mostaphaRoudsari committed Nov 27, 2020
1 parent 0bd64a4 commit 4a2f940
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions queenbee/recipe/task.py
Original file line number Diff line number Diff line change
Expand Up @@ -199,9 +199,10 @@ def check_template(self, template):
output_names = [output.name for output in template.outputs]
for ret in self.returns:
assert ret.name in output_names, \
f'Validation Error for Task {self.name} and Template {template.name}:' \
f'\n\tInvalid task return: {ret.name}. {template.name} does not have ' \
'an output wit this name.'
f'Validation Error for Task "{self.name}" and Template ' \
f'"{template.name}":' \
f'\n\tInvalid task return: "{ret.name}". "{template.name}"" does not ' \
'have an output with this name.'

@staticmethod
def artifacts_by_ref_source(artifacts, source) -> List[TaskArguments]:
Expand Down

0 comments on commit 4a2f940

Please sign in to comment.