diff --git a/src/main/java/com/sk89q/worldguard/bukkit/WorldConfiguration.java b/src/main/java/com/sk89q/worldguard/bukkit/WorldConfiguration.java index 3107489b..7a01ada8 100644 --- a/src/main/java/com/sk89q/worldguard/bukkit/WorldConfiguration.java +++ b/src/main/java/com/sk89q/worldguard/bukkit/WorldConfiguration.java @@ -36,6 +36,7 @@ import org.bukkit.entity.EntityType; import org.bukkit.entity.Player; import org.bukkit.potion.PotionEffectType; +import org.yaml.snakeyaml.parser.ParserException; import java.io.File; import java.io.FileNotFoundException; @@ -336,6 +337,9 @@ private void loadConfiguration() { } catch (IOException e) { log.severe("Error reading configuration for world " + worldName + ": "); e.printStackTrace(); + } catch (ParserException e) { + log.severe("Error parsing configuration for world " + worldName + ". "); + throw e; } summaryOnStart = getBoolean("summary-on-start", true);