Skip to content

Commit b2a3654

Browse files
committed
Remove StackOverflow check
Since this should be fixed, we want to know of any further StackOverflows
1 parent 317584d commit b2a3654

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

scijava-ops-engine/src/main/java/org/scijava/ops/engine/matcher/impl/DefaultOpMatcher.java

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -80,14 +80,8 @@ private OpMatchingException agglomeratedException( //
8080
final OpEnvironment env //
8181
) {
8282
// Develop help message
83-
var msg = "No match found!";
84-
try {
85-
// TODO: Remove try/catch.
86-
msg += " Perhaps you meant: \n" + env.help(request);
87-
} catch (StackOverflowError e) {
88-
// No-op
89-
}
90-
OpMatchingException agglomerated = new OpMatchingException(msg);
83+
var msg = "No match found! Perhaps you meant: \n" + env.help(request);
84+
OpMatchingException agglomerated = new OpMatchingException(msg);
9185
list.forEach(agglomerated::addSuppressed);
9286
return agglomerated;
9387
}

0 commit comments

Comments
 (0)