Skip to content

Commit

Permalink
improve value error message
Browse files Browse the repository at this point in the history
Signed-off-by: mahdikhashan <[email protected]>
  • Loading branch information
mahdikhashan committed Jan 27, 2025
1 parent 86a1841 commit d6c7319
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sdk/python/v1beta1/kubeflow/katib/api/katib_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,9 @@ class name in this argument.
except Exception as e:
if hasattr(e, "status") and e.status == 422:
raise ValueError(
f"An Experiment with the name {name} is not valid."
f"The Experiment name '{name}' is invalid. It must use only lowercase "
f"alphanumeric characters ('a-z', '0-9'), hyphens ('-'), or periods ('.'). "
f"It must also start and end with an alphanumeric character."
)

pvc_list = self.core_api.list_namespaced_persistent_volume_claim(
Expand Down

0 comments on commit d6c7319

Please sign in to comment.