Skip to content

Commit

Permalink
Handle missing field by gcs-configure-default-search-field correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Oct 15, 2012
1 parent 776db0f commit ad0177d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gcs-configure-default-search-field
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ var fieldName = commandLine.hasOption('name') && commandLine.options.name;
commandLine.assertDomainExistsHTTP(function() {
if (fieldName) {
commandLine.getIndexFieldStatus(domainName, fieldName, function(error, field) {
if (field) {
if (field && field.IndexFieldName == fieldName) {
console.log('Setting "%s" as the default search field of "%s"...',
fieldName,
domainName);
Expand Down

0 comments on commit ad0177d

Please sign in to comment.