diff --git a/src/banker/data/transaction.py b/src/banker/data/transaction.py index 75b1b0c..d54dec6 100644 --- a/src/banker/data/transaction.py +++ b/src/banker/data/transaction.py @@ -14,7 +14,8 @@ class Transaction: def __post_init__(self): if self.value.currency != PLN: - raise ValueError("The only accepted transaction currency is PLN") + raise ValueError("The only accepted transaction currency is PLN, " + f"but is: {self.value.currency}") def find_matching(self, categories: list[Category]) -> list[Category]: result = []