mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 13:07:29 +01:00
Show more details in error log which world the error belongs to.
This commit is contained in:
parent
7bd69bebf4
commit
9a91336958
@ -36,6 +36,7 @@
|
|||||||
import org.bukkit.entity.EntityType;
|
import org.bukkit.entity.EntityType;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.potion.PotionEffectType;
|
import org.bukkit.potion.PotionEffectType;
|
||||||
|
import org.yaml.snakeyaml.parser.ParserException;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
@ -336,6 +337,9 @@ private void loadConfiguration() {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
log.severe("Error reading configuration for world " + worldName + ": ");
|
log.severe("Error reading configuration for world " + worldName + ": ");
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
} catch (ParserException e) {
|
||||||
|
log.severe("Error parsing configuration for world " + worldName + ". ");
|
||||||
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
||||||
summaryOnStart = getBoolean("summary-on-start", true);
|
summaryOnStart = getBoolean("summary-on-start", true);
|
||||||
|
Loading…
Reference in New Issue
Block a user