From 93e1033a31ed80114c29959b8fb02a71720eb256 Mon Sep 17 00:00:00 2001 From: Harald Musum Date: Sun, 29 Dec 2024 11:29:35 +0100 Subject: [PATCH] Output name instead of full path when referring unavailable model --- .../src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java b/config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java index 78ed10a583e8..23dcdd278318 100644 --- a/config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java +++ b/config-model/src/main/java/com/yahoo/vespa/model/ml/ConvertedModel.java @@ -89,7 +89,7 @@ public static ConvertedModel fromSourceOrStore(Path modelPath, if (sourceModel == null && ! new ModelStore(applicationPackage, modelName).exists()) throw new IllegalArgumentException("No model '" + modelPath + "' is available. Available models: " + - context.importedModels().all().stream().map(ImportedMlModel::source).collect(Collectors.joining(", "))); + context.importedModels().all().stream().map(ImportedMlModel::name).collect(Collectors.joining(", "))); if (sourceModel != null) { if ( ! sourceModel.isNative()) {