diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-29 11:58:55 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2020-12-29 11:58:55 +0100 |
commit | 43fc338c2d76f3193989fb7d1f559875ae4478e7 (patch) | |
tree | 62433f8534358473f5e62268da713232db8c0284 /pyGHDL | |
parent | 2bf339b33613e06b69ccaaed770f892e1450a3ee (diff) | |
download | ghdl-43fc338c2d76f3193989fb7d1f559875ae4478e7.tar.gz ghdl-43fc338c2d76f3193989fb7d1f559875ae4478e7.tar.bz2 ghdl-43fc338c2d76f3193989fb7d1f559875ae4478e7.zip |
Changed error reporting in DOM to in-memory.
Diffstat (limited to 'pyGHDL')
-rw-r--r-- | pyGHDL/dom/Misc.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pyGHDL/dom/Misc.py b/pyGHDL/dom/Misc.py index 35149b3a2..df1ab4cce 100644 --- a/pyGHDL/dom/Misc.py +++ b/pyGHDL/dom/Misc.py @@ -8,7 +8,7 @@ from pyVHDLModel.VHDLModel import Library as VHDLModel_Library from pyVHDLModel.VHDLModel import Document as VHDLModel_Document import pyGHDL.libghdl as libghdl -from pyGHDL.libghdl import name_table, files_map, errorout_console +from pyGHDL.libghdl import name_table, files_map, errorout_memory from pyGHDL.libghdl.vhdl import nodes, sem_lib from pyGHDL.dom.Common import LibGHDLException, GHDLException @@ -28,8 +28,8 @@ class Design(VHDLModel_Design): def __ghdl_init(self): """Initialization: set options and then load libraries""" - # Print error messages on the console - errorout_console.Install_Handler() + # Collect error messages in memory + errorout_memory.Install_Handler() libghdl.set_option(b"--std=08") |