mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-01 13:57:35 +01:00
Print name of busted server config files
This commit is contained in:
parent
2acbfb04e5
commit
bc2999f578
@ -621,10 +621,14 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
}
|
||||
|
||||
+ // Paper start - load config files
|
||||
+ private static org.bukkit.configuration.file.YamlConfiguration loadConfigFile(File configFile) throws java.io.IOException, org.bukkit.configuration.InvalidConfigurationException {
|
||||
+ private static org.bukkit.configuration.file.YamlConfiguration loadConfigFile(File configFile) throws Exception {
|
||||
+ org.bukkit.configuration.file.YamlConfiguration config = new org.bukkit.configuration.file.YamlConfiguration();
|
||||
+ if (configFile.exists()) {
|
||||
+ config.load(configFile);
|
||||
+ try {
|
||||
+ config.load(configFile);
|
||||
+ } catch (Exception ex) {
|
||||
+ throw new Exception("Failed to load configuration file: " + configFile.getName(), ex);
|
||||
+ }
|
||||
+ }
|
||||
+ return config;
|
||||
+ }
|
||||
|
Loading…
Reference in New Issue
Block a user