Use a lower level exception in BukkitWorldConfiguration to get a printout when more severe YAML issues occur
This commit is contained in:
parent
c1ff4fc3d3
commit
5b8c3e7f70
|
@ -40,7 +40,7 @@ import com.sk89q.worldguard.chest.ChestProtection;
|
|||
import com.sk89q.worldguard.commands.CommandUtils;
|
||||
import com.sk89q.worldguard.config.YamlWorldConfiguration;
|
||||
import org.bukkit.potion.PotionEffectType;
|
||||
import org.yaml.snakeyaml.parser.ParserException;
|
||||
import org.yaml.snakeyaml.error.YAMLException;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.FileNotFoundException;
|
||||
|
@ -135,7 +135,7 @@ public class BukkitWorldConfiguration extends YamlWorldConfiguration {
|
|||
config.load();
|
||||
} catch (IOException e) {
|
||||
log.log(Level.SEVERE, "Error reading configuration for world " + worldName + ": ", e);
|
||||
} catch (ParserException e) {
|
||||
} catch (YAMLException e) {
|
||||
log.severe("Error parsing configuration for world " + worldName + ". ");
|
||||
throw e;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue