diff options
author | Harald Musum <musum@verizonmedia.com> | 2022-05-15 22:34:34 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-15 22:34:34 +0200 |
commit | 02f96c03fd5b434788e1c5e77436c99bb7562f77 (patch) | |
tree | 257d5bf34bae451bb11700896824ce73c73be1f5 /model-integration | |
parent | 2a382c9221a704c6bd33b5aabe7c9a0d756eba63 (diff) |
Revert "Bratseth/constants cleanup 2"
Diffstat (limited to 'model-integration')
-rw-r--r-- | model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java | 5 |
1 files changed, 2 insertions, 3 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 1003ebd8f3f..367b840a728 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,7 +3,6 @@ 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; @@ -56,7 +55,7 @@ public class ImportedMlModels { models.put(name, model); } } catch (InterruptedException | ExecutionException e) { - skippedModels.put(name, Exceptions.toMessageString(e)); + skippedModels.put(name, e.getMessage()); } }); importedModels = Collections.unmodifiableMap(models); @@ -98,7 +97,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) {} } |