Skip to content

Commit

Permalink
Output name instead of full path when referring unavailable model
Browse files Browse the repository at this point in the history
  • Loading branch information
hmusum committed Dec 29, 2024
1 parent 323c114 commit 93e1033
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 93e1033

Please sign in to comment.