Commit d5178470 authored by Lucas Bourneuf's avatar Lucas Bourneuf

improve error message

parent 9e509b77
......@@ -40,7 +40,7 @@ def build_pipeline(fnames:[str], verbosity:int=0) -> [Script]:
ext = os.path.splitext(fname)[1]
ftype = EXT_TO_TYPE.get(ext, 'unknow type')
if ftype not in LOADABLE:
raise ValueError(f"The type '{ftype}' can't be loaded")
raise ValueError(f"The type '{ftype}' (extension {ext}) can't be loaded")
yield from module_loader.build_scripts_from_file(fname)
def build_pipeline_from_configfile(config:str, verbosity:int=0) -> [Script]:
......
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