diff options
Diffstat (limited to 'pyGHDL/dom/_Utils.py')
-rw-r--r-- | pyGHDL/dom/_Utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pyGHDL/dom/_Utils.py b/pyGHDL/dom/_Utils.py index 76dec9a06..0349a11ef 100644 --- a/pyGHDL/dom/_Utils.py +++ b/pyGHDL/dom/_Utils.py @@ -62,9 +62,7 @@ def CheckForErrors() -> None: fileName = "" # name_table.Get_Name_Ptr(files_map.Get_File_Name(rec.file)) message = errorout_memory.Get_Error_Message(i + 1) - errors.append( - "{file}:{line}:{column}: {msg}".format(file=fileName, line=rec.line, column=rec.offset, msg=message) - ) + errors.append(f"{fileName}:{rec.line}:{rec.offset}: {message}") raise DOMException("Error raised in libghdl.") from LibGHDLException("libghdl: Internal error.", errors) |