diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2021-08-16 23:47:04 +0200 |
---|---|---|
committer | umarcor <unai.martinezcorral@ehu.eus> | 2021-08-23 16:35:36 +0200 |
commit | 3f0308a5f807269aa5691fa1c704c0e9147d45f1 (patch) | |
tree | e29bc841c2720f5668a71c8b18c9aa8151b84645 /pyGHDL/dom/formatting | |
parent | db48ba4042769646676f7ffb981149cbb5e52740 (diff) | |
download | ghdl-3f0308a5f807269aa5691fa1c704c0e9147d45f1.tar.gz ghdl-3f0308a5f807269aa5691fa1c704c0e9147d45f1.tar.bz2 ghdl-3f0308a5f807269aa5691fa1c704c0e9147d45f1.zip |
Handle contexts.
Diffstat (limited to 'pyGHDL/dom/formatting')
-rw-r--r-- | pyGHDL/dom/formatting/prettyprint.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pyGHDL/dom/formatting/prettyprint.py b/pyGHDL/dom/formatting/prettyprint.py index 2f582a5f8..bfb91f3da 100644 --- a/pyGHDL/dom/formatting/prettyprint.py +++ b/pyGHDL/dom/formatting/prettyprint.py @@ -389,8 +389,8 @@ class PrettyPrint: return self.formatGenericType(generic, level) else: raise PrettyPrintException( - "Unhandled generic kind for generic '{name}'.".format( - name=generic.Identifiers[0] + "Unhandled generic kind '{kind}' for generic '{name}'.".format( + kind=generic.__class__.__name__, name=generic.Identifiers[0] ) ) @@ -401,8 +401,8 @@ class PrettyPrint: return self.formatPortSignal(port, level) else: raise PrettyPrintException( - "Unhandled port kind for port '{name}'.".format( - name=port.Identifiers[0] + "Unhandled port kind '{kind}' for port '{name}'.".format( + kind=port.__class__.__name__, name=port.Identifiers[0] ) ) |