From 8fc9e0b13fdef02eaed455672ae65a081ada84be Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Wed, 28 Jul 2021 22:23:55 +0200 Subject: [PATCH] Be a bit more helpful with deleted plotworlds and invalid db entries --- .../main/java/com/plotsquared/core/database/SQLManager.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Core/src/main/java/com/plotsquared/core/database/SQLManager.java b/Core/src/main/java/com/plotsquared/core/database/SQLManager.java index 03545cfc9..13edefbd6 100644 --- a/Core/src/main/java/com/plotsquared/core/database/SQLManager.java +++ b/Core/src/main/java/com/plotsquared/core/database/SQLManager.java @@ -3223,8 +3223,9 @@ public class SQLManager implements AbstractDB { continue; } if (plot.getArea() == null) { - LOGGER.error("CRITICAL ERROR IN VALIDATION TASK!"); + LOGGER.error("CRITICAL ERROR IN VALIDATION TASK: {}", plot); LOGGER.error("PLOT AREA CANNOT BE NULL! SKIPPING PLOT!"); + LOGGER.info("Delete this entry from your database or set `database-purger: true` in the settings.yml"); continue; } if (database == null) {