diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-06-20 08:40:30 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2022-12-24 09:17:13 +0100 |
commit | a89b2986b4a252ec8ae5a5db920c2e329ad2a9a3 (patch) | |
tree | 657ecc7cc7c25bc9e71754a6e3a1bee38ee40e38 /pyGHDL/dom | |
parent | 26bb3c572eaffafafd8de8ef09b8acc34f91656f (diff) | |
download | ghdl-a89b2986b4a252ec8ae5a5db920c2e329ad2a9a3.tar.gz ghdl-a89b2986b4a252ec8ae5a5db920c2e329ad2a9a3.tar.bz2 ghdl-a89b2986b4a252ec8ae5a5db920c2e329ad2a9a3.zip |
Clear errors after error readout.
(cherry picked from commit 988c084af7ef6312a6881d4d1a8c3c3965d1471b)
Diffstat (limited to 'pyGHDL/dom')
-rw-r--r-- | pyGHDL/dom/_Utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pyGHDL/dom/_Utils.py b/pyGHDL/dom/_Utils.py index 10053db6e..3b647013b 100644 --- a/pyGHDL/dom/_Utils.py +++ b/pyGHDL/dom/_Utils.py @@ -64,6 +64,8 @@ def CheckForErrors() -> None: errors.append(f"{fileName}:{rec.line}:{rec.offset}: {message}") + errorout_memory.Clear_Errors() + raise DOMException("Error raised in libghdl.") from LibGHDLException("libghdl: Internal error.", errors) |