Skip to content

Commit

Permalink
Cleaning up warning on ensureTextIndex errors
Browse files Browse the repository at this point in the history
  • Loading branch information
JedWatson committed Jan 25, 2017
1 parent 96c692e commit 6162bfc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/list/ensureTextIndex.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ function ensureTextIndex (callback) {
}

// It's a text index but not one of ours; nothing we can do
console.error('list.ensureTextIndex() failed to update the existing text index \'' + existingIndexName + '\' for the \'' + list.key + '\' list.');
console.error('The existing index wasn\'t automatically created by ensureTextIndex() so will not be replaced.');
console.error('This may lead to unexpected behaviour when performing text searches on the this list.');
console.error(''
+ 'list.ensureTextIndex() failed to update the existing text index \'' + existingIndexName + '\' for the \'' + list.key + '\' list.\n'
+ 'The existing index wasn\'t automatically created by ensureTextIndex() so will not be replaced.\n'
+ 'This may lead to unexpected behaviour when performing text searches on the this list.'
);
return;
}

Expand Down

0 comments on commit 6162bfc

Please sign in to comment.