Skip to content

Commit

Permalink
Merge pull request #33060 from vespa-engine/hmusum/output-name-instea…
Browse files Browse the repository at this point in the history
…d-of-source

Output name instead of full path when referring to unavailable model
  • Loading branch information
hmusum authored Dec 31, 2024
2 parents a35dc8f + 93e1033 commit 4ddc77f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 4ddc77f

Please sign in to comment.