Skip to content

Commit

Permalink
Improved error message
Browse files Browse the repository at this point in the history
  • Loading branch information
david-zwicker committed Mar 2, 2024
1 parent 21a1f07 commit eeca686
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pde/pdes/pde.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down

0 comments on commit eeca686

Please sign in to comment.