summaryrefslogtreecommitdiffstats
path: root/model-integration
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2022-05-15 23:33:27 +0200
committerGitHub <noreply@github.com>2022-05-15 23:33:27 +0200
commitbbe92324857195e87affc35235218c9417ec415a (patch)
tree257d5bf34bae451bb11700896824ce73c73be1f5 /model-integration
parent2a382c9221a704c6bd33b5aabe7c9a0d756eba63 (diff)
parent02f96c03fd5b434788e1c5e77436c99bb7562f77 (diff)
Merge pull request #22611 from vespa-engine/revert-22600-bratseth/constants-cleanup-2
Revert "Bratseth/constants cleanup 2"
Diffstat (limited to 'model-integration')
-rw-r--r--model-integration/src/main/java/ai/vespa/rankingexpression/importer/configmodelview/ImportedMlModels.java5
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) {}
}