Commit 4cddbc6c authored by Tristan Gingold's avatar Tristan Gingold

Improve error message.

parent f30f91b2
......@@ -117,9 +117,9 @@ class VerilogPreprocessor(object):
probable_file = os.path.join(searchdir, filename)
if os.path.isfile(probable_file):
return os.path.abspath(probable_file)
raise Exception("Can't find %s for %s in any of the include "
"directories: %s", filename, self.vlog_file.file_path,
', '.join(self.vlog_file.include_dirs))
raise Exception("Can't find {} for {} in any of the include "
"directories: {}".format(filename, self.vlog_file.file_path,
', '.join(self.vlog_file.include_dirs)))
def _parse_macro_def(self, macro):
"""Parse the provided 'macro' and, if it's not a reserved keyword,
......
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