aboutsummaryrefslogtreecommitdiffstats
path: root/pyGHDL/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyGHDL/__init__.py')
-rw-r--r--pyGHDL/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/pyGHDL/__init__.py b/pyGHDL/__init__.py
index 0324bd15d..60572d05a 100644
--- a/pyGHDL/__init__.py
+++ b/pyGHDL/__init__.py
@@ -52,4 +52,7 @@ from pydecor import export
@export
class GHDLBaseException(Exception):
- pass
+
+ @property
+ def message(self) -> str:
+ return str(self)