diff --git a/src/main/java/io/bioimage/modelrunner/engine/EngineLoader.java b/src/main/java/io/bioimage/modelrunner/engine/EngineLoader.java index 6449d82e..e5248030 100644 --- a/src/main/java/io/bioimage/modelrunner/engine/EngineLoader.java +++ b/src/main/java/io/bioimage/modelrunner/engine/EngineLoader.java @@ -33,6 +33,7 @@ import java.util.zip.ZipEntry; import java.util.zip.ZipFile; +import io.bioimage.modelrunner.apposed.appose.Types; import io.bioimage.modelrunner.bioimageio.bioengine.BioengineInterface; import io.bioimage.modelrunner.exceptions.LoadEngineException; import io.bioimage.modelrunner.versionmanagement.DeepLearningVersion; @@ -324,7 +325,7 @@ private void setEngineInstance() throws LoadEngineException } } catch (Exception | Error ex) { - errMsg = ex.toString(); + errMsg = Types.stackTrace(ex); } // As no interface has been found create an exception throw new LoadEngineException( new File( this.enginePath ), errMsg );