mirror of
https://github.com/lightbend/config.git
synced 2025-04-05 09:00:34 +08:00
minor fix
This commit is contained in:
parent
b7e5569b5f
commit
47f3c97d9b
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user