Commit e5b5fb24 authored by Mitar's avatar Mitar

Better error message.

parent dd335740
Pipeline #98843443 failed with stages
in 96 minutes and 32 seconds
......@@ -65,10 +65,7 @@ def resolve_pipeline(pipelines_dir, pipeline_id):
if pipeline_id in D3M_PIPELINES:
return None
raise PipelineNotFoundError("Could not resolve '{pipeline_id}' in '{pipelines_dir}'.".format(
pipeline_id=pipeline_id,
pipelines_dir=pipelines_dir,
))
raise PipelineNotFoundError
def process_interface_version(interface_version):
......@@ -102,9 +99,13 @@ def process_interface_version(interface_version):
for pipeline_id in pipelines_used_in_pipeline_run(pipeline_run):
try:
pipeline = resolve_pipeline(pipelines_dir, pipeline_id)
except PipelineNotFoundError as e:
except PipelineNotFoundError:
error = True
print(str(e), flush=True)
print("Could not resolve pipeline '{pipeline_id}' in '{pipelines_dir}' for pipeline run '{pipeline_run}'.".format(
pipeline_id=pipeline_id,
pipelines_dir=pipelines_dir,
pipeline_run=pipeline_run,
), flush=True)
continue
if pipeline:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment