aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 09:08:14 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 12:28:25 +0200
commitef92aeca1b940e26b8fb6d562dcc74b06bb450f8 (patch)
tree48af31e5b7693f321883b992dc6a44878aca2180
parentf956044c3045992f37f23d88d9e51a1de8593948 (diff)
downloadghdl-ef92aeca1b940e26b8fb6d562dcc74b06bb450f8.tar.gz
ghdl-ef92aeca1b940e26b8fb6d562dcc74b06bb450f8.tar.bz2
ghdl-ef92aeca1b940e26b8fb6d562dcc74b06bb450f8.zip
Fixed filename in error messages.
-rw-r--r--pyGHDL/dom/_Utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyGHDL/dom/_Utils.py b/pyGHDL/dom/_Utils.py
index e0d97f892..38a85c0c3 100644
--- a/pyGHDL/dom/_Utils.py
+++ b/pyGHDL/dom/_Utils.py
@@ -77,7 +77,7 @@ def GetModeOfNode(node: Iir) -> Mode:
def GetPositionOfNode(node: Iir) -> Position:
location = nodes.Get_Location(node)
file = files_map.Location_To_File(location)
- fileName = name_table.Get_Name_Ptr(file)
+ fileName = name_table.Get_Name_Ptr(files_map.Get_File_Name(file))
# position = files_map.Location_File_To_Pos(location, file)
line = files_map.Location_File_To_Line(location, file)
column = files_map.Location_File_Line_To_Offset(location, file, line)