aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/dom/_Utils.py
diff options
context:
space:
mode:
authortgingold <tgingold@users.noreply.github.com>2022-12-24 11:06:07 +0100
committerGitHub <noreply@github.com>2022-12-24 11:06:07 +0100
commit5bca94f83b0d44297f943ff0d0237ec216fc29e9 (patch)
tree1b045b05c55baeb2676cdbb0dcb00393c24557db /pyGHDL/dom/_Utils.py
parent26bb3c572eaffafafd8de8ef09b8acc34f91656f (diff)
parent08a338e9568c333929c6863be60580619e3e77ff (diff)
downloadghdl-5bca94f83b0d44297f943ff0d0237ec216fc29e9.tar.gz
ghdl-5bca94f83b0d44297f943ff0d0237ec216fc29e9.tar.bz2
ghdl-5bca94f83b0d44297f943ff0d0237ec216fc29e9.zip
Merge pull request #2281 from Paebbels/paebbels/encoding
Configurable encoding for pyGHDL
Diffstat (limited to 'pyGHDL/dom/_Utils.py')
-rw-r--r--pyGHDL/dom/_Utils.py2
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)