Skip to content

Commit

Permalink
Added: domain information to error message.
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Nyga committed Dec 20, 2023
1 parent 5aa782c commit 320f2f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jpt/distributions/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ def _mapvalue(self, key: Any) -> int or float:
return self._dict[key]
except KeyError:
raise ValueError(
f'Value {key} out of domain'
f'Value {key} out of domain (must be in {set(self._dict)})'
)

def transformer(self):
Expand Down

0 comments on commit 320f2f0

Please sign in to comment.