Commit ff26c8c3 authored by Tristan Gingold's avatar Tristan Gingold

srcfile.py: improve error message.

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