Skip to content

Commit 71738d2

Browse files
committed
print exception
1 parent 98a455d commit 71738d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/main/java/io/bioimage/modelrunner/pytorch/javacpp/PytorchJavaCPPInterface.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ void runInterprocessing(List<Tensor<T>> inputTensors, List<Tensor<R>> outputTens
306306
if (task.status == TaskStatus.CANCELED)
307307
throw new RuntimeException();
308308
else if (task.status == TaskStatus.FAILED)
309-
throw new RuntimeException();
309+
throw new RuntimeException(task.error);
310310
else if (task.status == TaskStatus.CRASHED) {
311311
this.runner.close();
312312
runner = null;

0 commit comments

Comments
 (0)