diff options
author | Jon Bratseth <bratseth@gmail.com> | 2022-05-13 12:13:20 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@gmail.com> | 2022-05-13 12:13:20 +0200 |
commit | 02d0faa424db6c3ede74dd685438cd234c693139 (patch) | |
tree | 37a115b10e81296bd346b2f36843eff9e4e74688 /model-integration | |
parent | 1384a84e3af94235dd07ee068afa446aaf7eb31f (diff) |
Propagate full message
Diffstat (limited to 'model-integration')
-rw-r--r-- | model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java index 367b840a728..1003ebd8f3f 100644 --- a/model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java +++ b/model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java @@ -3,6 +3,7 @@ package ai.vespa.rankingexpression.importer.configmodelview; import com.yahoo.concurrent.InThreadExecutorService; import com.yahoo.path.Path; +import com.yahoo.yolean.Exceptions; import java.io.File; import java.util.Arrays; @@ -55,7 +56,7 @@ public class ImportedMlModels { models.put(name, model); } } catch (InterruptedException | ExecutionException e) { - skippedModels.put(name, e.getMessage()); + skippedModels.put(name, Exceptions.toMessageString(e)); } }); importedModels = Collections.unmodifiableMap(models); @@ -97,7 +98,7 @@ public class ImportedMlModels { if (existing != null) { try { throw new IllegalArgumentException("The models in " + child + " and " + existing.get().source() + - " both resolve to the model name '" + name + "'"); + " both resolve to the model name '" + name + "'"); } catch (InterruptedException | ExecutionException e) {} } |