aboutsummaryrefslogtreecommitdiff
path: root/src/mlia/core/reporting.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mlia/core/reporting.py')
-rw-r--r--src/mlia/core/reporting.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mlia/core/reporting.py b/src/mlia/core/reporting.py
index 7b9ce5c..722adfd 100644
--- a/src/mlia/core/reporting.py
+++ b/src/mlia/core/reporting.py
@@ -427,7 +427,7 @@ class SingleRow(Table):
def to_plain_text(self, **kwargs: Any) -> str:
"""Produce report in human readable format."""
if len(self.rows) != 1:
- raise Exception("Table should have only one row")
+ raise RuntimeError(f"Table should have only one row, but has {self.rows}.")
items = "\n".join(
column.header.ljust(35) + str(item).rjust(25)