aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/cli
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-21 23:18:29 +0200
committerPatrick Lehmann <Patrick.Lehmann@plc2.de>2021-06-22 12:28:25 +0200
commitf956044c3045992f37f23d88d9e51a1de8593948 (patch)
tree439f7b1b958ccba41a7f35cc711415f5345be514 /pyGHDL/cli
parent11bd75f611a892af0e20e913a9580d43c23e610b (diff)
downloadghdl-f956044c3045992f37f23d88d9e51a1de8593948.tar.gz
ghdl-f956044c3045992f37f23d88d9e51a1de8593948.tar.bz2
ghdl-f956044c3045992f37f23d88d9e51a1de8593948.zip
Implemented handling of generic parameters to subprograms.
Diffstat (limited to 'pyGHDL/cli')
-rwxr-xr-xpyGHDL/cli/DOM.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/pyGHDL/cli/DOM.py b/pyGHDL/cli/DOM.py
index 8f9c58edc..bb3ef1a05 100755
--- a/pyGHDL/cli/DOM.py
+++ b/pyGHDL/cli/DOM.py
@@ -13,7 +13,9 @@ from pyGHDL import GHDLBaseException
__all__ = []
__api__ = __all__
-from pyGHDL.dom.formatting.prettyprint import PrettyPrint
+from pyGHDL.dom.Common import DOMException
+
+from pyGHDL.dom.formatting.prettyprint import PrettyPrint, PrettyPrintException
@export
@@ -52,8 +54,10 @@ def main(items):
app = Application()
app.addFile(Path(item), "default_lib")
app.prettyPrint()
- except GHDLBaseException as ex:
- print(ex)
+ except DOMException as ex:
+ print("DOM:", ex)
+ except PrettyPrintException as ex:
+ print("PP:", ex)
_exitcode = 1
return _exitcode