minor fix

This commit is contained in:
pshirshov 2016-07-04 17:27:36 +01:00
parent b7e5569b5f
commit 47f3c97d9b

View File

@ -1056,7 +1056,7 @@ public final class ConfigFactory {
try {
return ConfigLoadingStrategy.class.cast(Class.forName(className).newInstance());
} catch (Throwable e) {
throw new IllegalArgumentException("Failed to load strategy: " + className, e);
throw new ConfigException.BugOrBroken("Failed to load strategy: " + className, e);
}
} else {
return new DefaultConfigLoadingStrategy();