From f4d3820838585bbe8e97477dea1b61c2ba47f8f1 Mon Sep 17 00:00:00 2001 From: wyzula-jan Date: Tue, 4 Mar 2025 10:57:57 +0100 Subject: [PATCH] fix(entry_validator): validator reports list of signal if user chooses the wrong one --- bec_widgets/utils/entry_validator.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bec_widgets/utils/entry_validator.py b/bec_widgets/utils/entry_validator.py index cc38b2a2..3a491eb0 100644 --- a/bec_widgets/utils/entry_validator.py +++ b/bec_widgets/utils/entry_validator.py @@ -22,7 +22,9 @@ class EntryValidator: if entry is None or entry == "": entry = next(iter(device._hints), name) if hasattr(device, "_hints") else name if entry not in description: - raise ValueError(f"Entry '{entry}' not found in device '{name}' signals") + raise ValueError( + f"Entry '{entry}' not found in device '{name}' signals. Available signals: {description.keys()}" + ) return entry