Better log messages when failing to start the game.

This commit is contained in:
Stian Grenborgen 2024-01-04 22:00:29 +01:00
parent ee61fdedd5
commit a45d17226a
1 changed files with 2 additions and 0 deletions

View File

@ -22,6 +22,7 @@ package net.sf.freecol.server.control;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
import net.sf.freecol.common.FreeColException;
@ -146,6 +147,7 @@ public final class PreGameController extends Controller {
try {
freeColServer.startGame();
} catch (FreeColException|RuntimeException fce) {
logger.log(Level.WARNING, "Exception while trying to start the game", fce);
return serverPlayer.clientError(fce.getMessage());
}