Skip to content

Commit d6c7319

Browse files
committed
improve value error message
Signed-off-by: mahdikhashan <[email protected]>
1 parent 86a1841 commit d6c7319

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sdk/python/v1beta1/kubeflow/katib/api/katib_client.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,9 @@ class name in this argument.
571571
except Exception as e:
572572
if hasattr(e, "status") and e.status == 422:
573573
raise ValueError(
574-
f"An Experiment with the name {name} is not valid."
574+
f"The Experiment name '{name}' is invalid. It must use only lowercase "
575+
f"alphanumeric characters ('a-z', '0-9'), hyphens ('-'), or periods ('.'). "
576+
f"It must also start and end with an alphanumeric character."
575577
)
576578

577579
pvc_list = self.core_api.list_namespaced_persistent_volume_claim(

0 commit comments

Comments
 (0)