Commit ff26c8c3 authored by Tristan Gingold's avatar Tristan Gingold improve error message.

parent 38242bac
......@@ -365,6 +365,5 @@ def create_source_file(path, module, library=None,
elif extension in MICROSEMI_FILE_DICT:
new_file = MICROSEMI_FILE_DICT[extension](path=path, module=module)
raise Exception("Cannot create source file %s, "
"unknown file extension %s", path, extension)
raise Exception("Unknown extension '{}' for file {}".format(extension, path))
return new_file
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