Skip to content
Snippets Groups Projects
Commit 1f04f859 authored by Workum, Dirk-Jan van's avatar Workum, Dirk-Jan van
Browse files

also show when node does not exist

parent 4e82587f
Branches
Tags
2 merge requests!260Release v4.3.3,!253Clarify error group info
Pipeline #111282 passed
......@@ -1813,9 +1813,14 @@ public final class Utils {
} else {
Pantools.logger.info("Using homology groups provided by user.");
for (Long hmGroup : hmGroups) {
Node hmNode = GRAPH_DB.getNodeById(hmGroup);
test_if_correct_label(hmNode, HOMOLOGY_GROUP_LABEL, true);
hmList.add(hmNode);
try {
Node hmNode = GRAPH_DB.getNodeById(hmGroup);
test_if_correct_label(hmNode, HOMOLOGY_GROUP_LABEL, true);
hmList.add(hmNode);
} catch (NotFoundException nfe) {
Pantools.logger.error("Homology group {} was not found.", hmGroup);
throw new RuntimeException(nfe);
}
}
}
return hmList;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment