mirror of
https://github.com/Andre0512/pyhOn.git
synced 2024-12-22 18:55:32 +00:00
Specify enum key when assigning incorrect value
This makes the exception a bit clearer on which property exactly has the incorrect value
This commit is contained in:
parent
59e3d9949f
commit
cb216eab59
|
@ -48,4 +48,4 @@ class HonParameterEnum(HonParameter):
|
|||
self._value = value
|
||||
self.check_trigger(value)
|
||||
else:
|
||||
raise ValueError(f"Allowed values: {self._values} But was: {value}")
|
||||
raise ValueError(f"Allowed values for {self.key}: {self._values} But was: {value}")
|
||||
|
|
Loading…
Reference in a new issue