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()) {