From a0116b6821d3b17a337ffe848d2658605c49d582 Mon Sep 17 00:00:00 2001 From: Takuya Sasatani <33111879+t-sasatani@users.noreply.github.com> Date: Wed, 6 Nov 2024 14:27:54 +0800 Subject: [PATCH] Update update target not found error message Co-authored-by: Jonny Saunders --- miniscope_io/models/devupdate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miniscope_io/models/devupdate.py b/miniscope_io/models/devupdate.py index f534e6a..d232d4d 100644 --- a/miniscope_io/models/devupdate.py +++ b/miniscope_io/models/devupdate.py @@ -116,4 +116,4 @@ def validate_target(cls, value: str) -> UpdateTarget: try: return UpdateTarget[value] except KeyError as e: - raise ValueError(f"Target {value} not found.") from e + raise ValueError(f"Target {value} not found, must be a member of UpdateTarget: {list(UpdateTarget.__members__.keys())}.") from e