Skip to content

Commit

Permalink
improve error message for XML where the spec attribute is missing #28
Browse files Browse the repository at this point in the history
  • Loading branch information
rbouckaert committed Jul 19, 2024
1 parent 8482048 commit 25df72b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/beast/pkgmgmt/BEASTClassLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ public static Class<?> forName(String className, String service) throws ClassNot
if (!services.get(service).contains(className)) {
throw new ClassNotFoundException("Could not find class " + className + " as service " + service + "\n"
+ "Perhaps the package is missing or the package is not correctly configured by the developer "
+ (className.equals("beast.base.core.BEASTInterface") ? "\nor there is an element without spec attribute\n" : "")
+ "(Developer: check by running beastfx.app.tools.PackageHealthChecker on the package)");
}
ClassLoader loader = class2loaderMap.get(className);
Expand Down

0 comments on commit 25df72b

Please sign in to comment.