From a89b2986b4a252ec8ae5a5db920c2e329ad2a9a3 Mon Sep 17 00:00:00 2001 From: Patrick Lehmann Date: Mon, 20 Jun 2022 08:40:30 +0200 Subject: Clear errors after error readout. (cherry picked from commit 988c084af7ef6312a6881d4d1a8c3c3965d1471b) --- pyGHDL/dom/_Utils.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pyGHDL/dom/_Utils.py') 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) -- cgit v1.2.3