From 71b77edc51c692ff9feb6a424c398d82bdfbf5f8 Mon Sep 17 00:00:00 2001 From: Amanda Vialva Date: Fri, 11 Oct 2024 11:36:53 -0400 Subject: [PATCH] chore: change error code back --- master/internal/api_experiment.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/master/internal/api_experiment.go b/master/internal/api_experiment.go index 9a831d67767..fa742a1779b 100644 --- a/master/internal/api_experiment.go +++ b/master/internal/api_experiment.go @@ -1465,7 +1465,7 @@ func (a *apiServer) parseAndMergeContinueConfig(expID int, overrideConfig string } mergedConfig := schemas.Merge(providedConfig, activeConfig) if overrideName := mergedConfig.Searcher().AsLegacy().Name; isSingle && overrideName != "single" { - return nil, false, status.Errorf(codes.Internal, + return nil, false, status.Errorf(codes.InvalidArgument, fmt.Sprintf("override config must have single searcher type got '%s' instead", overrideName)) }