Skip to content

Commit

Permalink
refactor(handler): add more descriptive error for missing credit config
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamin-awd committed Jul 21, 2024
1 parent a408c79 commit 68a5f2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/monopoly/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 68a5f2f

Please sign in to comment.