diff --git a/pyhon/parameter/enum.py b/pyhon/parameter/enum.py index 2d49b7c..3e17aa7 100644 --- a/pyhon/parameter/enum.py +++ b/pyhon/parameter/enum.py @@ -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}")