From eeca686138eae94fd94a205b464ea22218b4a32e Mon Sep 17 00:00:00 2001 From: David Zwicker Date: Sat, 2 Mar 2024 08:52:44 +0100 Subject: [PATCH] Improved error message --- pde/pdes/pde.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pde/pdes/pde.py b/pde/pdes/pde.py index 979739d6..bfab7790 100644 --- a/pde/pdes/pde.py +++ b/pde/pdes/pde.py @@ -191,7 +191,7 @@ def __init__( self._logger.warning("Found default BCs in `bcs` and `bc_ops`") bcs["*:*"] = bc # append default boundary conditions else: - raise TypeError('`bc_ops` must be a dictionary') + raise TypeError(f'`bc_ops` must be a dictionary, but got {type(bc_ops)}"') self.bcs: dict[str, Any] = {} for key_str, value in bcs.items():