From 8ac2b7e4fac14a9fd62ede5bec5e498a7162f9e5 Mon Sep 17 00:00:00 2001 From: Shovit <119912892+Virtual4087@users.noreply.github.com> Date: Thu, 5 Oct 2023 13:56:57 +0545 Subject: [PATCH] Fixed bug regarding return from invalid name error Signed-off-by: Shovit <119912892+Virtual4087@users.noreply.github.com> --- flyteadmin/pkg/manager/impl/validation/execution_validator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flyteadmin/pkg/manager/impl/validation/execution_validator.go b/flyteadmin/pkg/manager/impl/validation/execution_validator.go index b5056589a8..8554694477 100644 --- a/flyteadmin/pkg/manager/impl/validation/execution_validator.go +++ b/flyteadmin/pkg/manager/impl/validation/execution_validator.go @@ -131,7 +131,7 @@ func CheckValidExecutionID(executionID, fieldName string) error { matched := executionIDRegex.MatchString(executionID) if !matched { - return errors.NewFlyteAdminErrorf(codes.InvalidArgument, "invalid %s format: %s", fieldName, executionID) + return errors.NewFlyteAdminErrorf(codes.InvalidArgument, "invalid %s format: %s, does not match regex '^[a-z][a-z\-0-9]*$'", fieldName, executionID) } return nil