mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-24 17:32:48 +00:00
More concise error messages when root node entries are incorrect in index
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2071 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -215,9 +215,13 @@ public class LeafScorer extends Scorer
|
|||||||
counter.count++;
|
counter.count++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (parentIds.size() != 1)
|
if (parentIds.size() > 1)
|
||||||
{
|
{
|
||||||
throw new SearcherException("More than one root node? " + parentIds.size());
|
throw new SearcherException("More than one root node in index: " + parentIds.size());
|
||||||
|
}
|
||||||
|
else if (parentIds.size() == 0)
|
||||||
|
{
|
||||||
|
throw new SearcherException("Index has no root node. Check that the correct index locations are being used.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user