Skip to content

Commit f42a63d

Browse files
Treiblesschorlegselzer
authored andcommitted
Add debug message
1 parent 56d57a8 commit f42a63d

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main/java/org/scijava/ops/OpService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,7 @@ public Iterable<OpInfo> infos(String name) {
159159
return opCache.getAndBelow(new PrefixQuery(opName));
160160
}
161161

162+
@SuppressWarnings("unchecked")
162163
public <T> T findOpInstance(final String opName, final Nil<T> specialType, final Nil<?>[] inTypes,
163164
final Nil<?>[] outTypes, final Object... secondaryArgs) {
164165
final OpRef ref = OpRef.fromTypes(opName, toTypes(specialType), toTypes(outTypes), toTypes(inTypes));
@@ -183,6 +184,7 @@ public <T> T findOpInstance(final String opName, final Nil<T> specialType, final
183184
try {
184185
return (T) transformation.exceute(this, secondaryArgs);
185186
} catch (OpMatchingException | OpTransformationException e1) {
187+
log.debug("Execution of Op transformatioon failed:\n");
186188
log.debug(e1);
187189
throw new IllegalArgumentException(e);
188190
}

0 commit comments

Comments
 (0)