better error message when diff contains bad paths

This commit is contained in:
Grahame Grieve 2023-09-20 11:15:15 +10:00
parent 8d3fff4d4e
commit 1326108207
2 changed files with 3 additions and 2 deletions

View File

@ -212,7 +212,7 @@ public class ComparisonSession {
}
annotation = getAnnotation(other);
if (annotation != null) {
annotation.deleted(name, other);
annotation.deleted();
}
}
}

View File

@ -3431,7 +3431,8 @@ public class ProfileUtilities extends TranslatingUtilities {
private void compareDiffs(List<ElementDefinition> diffList, List<ElementDefinition> newDiff, List<String> errors) {
if (diffList.size() != newDiff.size()) {
errors.add("The diff list size changed when sorting - was "+diffList.size()+" is now "+newDiff.size());
errors.add("The diff list size changed when sorting - was "+diffList.size()+" is now "+newDiff.size()+
" ["+CommaSeparatedStringBuilder.buildObjects(diffList)+"]/["+CommaSeparatedStringBuilder.buildObjects(newDiff)+"]");
} else {
for (int i = 0; i < Integer.min(diffList.size(), newDiff.size()); i++) {
ElementDefinition e = diffList.get(i);