From 4a2f940da090b17b97d9493dc433ec205f512d8f Mon Sep 17 00:00:00 2001 From: Mostapha Date: Fri, 27 Nov 2020 18:47:02 -0500 Subject: [PATCH] style(task): improve error message --- queenbee/recipe/task.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/queenbee/recipe/task.py b/queenbee/recipe/task.py index 3f154000..6b5cd655 100644 --- a/queenbee/recipe/task.py +++ b/queenbee/recipe/task.py @@ -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]: