Skip to content

Commit 9d81144

Browse files
Merge pull request #251 from FlorianWege-IESE/AuthorizationDynamicClassLoader-fix-exception-message
Fix exception message AuthorizationDynamicClassLoader
2 parents a851377 + 7f66491 commit 9d81144

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

basyx.components/basyx.components.lib/src/main/java/org/eclipse/basyx/components/security/authorization/internal/AuthorizationDynamicClassLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public static <T> T loadInstanceDynamically(final BaSyxConfiguration config, fin
6666
final String effectiveClassName = classesBySimpleNameMap.getOrDefault(className, className);
6767

6868
if (effectiveClassName == null) {
69-
throw new IllegalArgumentException("granted authority subject information provider class is null");
69+
throw new IllegalArgumentException(String.format("property %s does not exist or class name obtained from config property (%s) is null", propertyName, className));
7070
}
7171

7272
final Class<?> clazz = Class.forName(effectiveClassName);

0 commit comments

Comments
 (0)