Skip to content

Commit

Permalink
chore: change error code back
Browse files Browse the repository at this point in the history
  • Loading branch information
amandavialva01 committed Oct 11, 2024
1 parent 2356f91 commit 71b77ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion master/internal/api_experiment.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}

Expand Down

0 comments on commit 71b77ed

Please sign in to comment.