diff --git a/core/src/main/java/com/seibel/distanthorizons/core/sql/AbstractDhRepo.java b/core/src/main/java/com/seibel/distanthorizons/core/sql/AbstractDhRepo.java index a1175da80..02f6bf19a 100644 --- a/core/src/main/java/com/seibel/distanthorizons/core/sql/AbstractDhRepo.java +++ b/core/src/main/java/com/seibel/distanthorizons/core/sql/AbstractDhRepo.java @@ -180,7 +180,10 @@ public abstract class AbstractDhRepo { // SQL exceptions generally only happen when something is wrong with // the database or the query and should cause the system to blow up to notify the developer - throw new RuntimeException("Unexpected Query error: ["+e.getMessage()+"], for script: ["+sql+"].", e); + + String message = "Unexpected Query error: ["+e.getMessage()+"], for script: ["+sql+"]."; + LOGGER.error(message); + throw new RuntimeException(message, e); } }