From 68a5f2fb85c49b76bb5e6cca5ef9a38ab2031afe Mon Sep 17 00:00:00 2001 From: Benjamin Dornel Date: Sun, 21 Jul 2024 20:57:08 +0800 Subject: [PATCH] refactor(handler): add more descriptive error for missing credit config --- src/monopoly/handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monopoly/handler.py b/src/monopoly/handler.py index 7349b688..d9cc62de 100644 --- a/src/monopoly/handler.py +++ b/src/monopoly/handler.py @@ -52,7 +52,7 @@ def get_statement(self) -> CreditStatement | DebitStatement: ) if not credit_config: - raise RuntimeError("Missing credit config") + raise RuntimeError(f"Missing credit config for bank: {bank}") # if it's not a debit statement, assume that it's a credit statement return CreditStatement(self.parser, credit_config)