diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-21 23:18:29 +0200 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-06-22 12:28:25 +0200 |
commit | f956044c3045992f37f23d88d9e51a1de8593948 (patch) | |
tree | 439f7b1b958ccba41a7f35cc711415f5345be514 /pyGHDL/cli | |
parent | 11bd75f611a892af0e20e913a9580d43c23e610b (diff) | |
download | ghdl-f956044c3045992f37f23d88d9e51a1de8593948.tar.gz ghdl-f956044c3045992f37f23d88d9e51a1de8593948.tar.bz2 ghdl-f956044c3045992f37f23d88d9e51a1de8593948.zip |
Implemented handling of generic parameters to subprograms.
Diffstat (limited to 'pyGHDL/cli')
-rwxr-xr-x | pyGHDL/cli/DOM.py | 10 |
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 |