Merge pull request #336 from ST-DDT/configLoadExceptions

Show more details in error log which world the error belongs to.
This commit is contained in:
sk89q 2014-12-31 01:59:57 -08:00
commit bed9bd77a6

View File

@ -37,6 +37,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;
@ -332,6 +333,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);