Skip to content

Commit

Permalink
chore: change error code back (#10042)
Browse files Browse the repository at this point in the history
  • Loading branch information
amandavialva01 authored Oct 15, 2024
1 parent 5a39ecb commit dd6aeda
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 dd6aeda

Please sign in to comment.