Skip to content

Commit

Permalink
correct error message
Browse files Browse the repository at this point in the history
  • Loading branch information
carlosuc3m committed Aug 31, 2023
1 parent d32aa5a commit c619552
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/main/java/io/bioimage/modelrunner/model/Model.java
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,7 @@ public static Model createBioimageioModelWithExactWeigths(String bmzModelFolder,
}
}
if (info == null)
throw new IOException("Please install a compatible engine with the model weights. "
+ "Both the major and minor versions of the engine need to be the same as the weigths. "
throw new IOException("Please install the engines defined by the model weights. "
+ "The model weights are: " + descriptor.getWeights().getEnginesListWithVersions());
return Model.createDeepLearningModel(bmzModelFolder, modelSource, info);
}
Expand Down

0 comments on commit c619552

Please sign in to comment.