Small improvement

This commit is contained in:
Stijn Bannink 2025-01-12 19:33:51 +00:00
parent 346560cdde
commit 2b56d42a48

View file

@ -128,8 +128,7 @@ public void removeVehicleFromPoliceGarage(String vehicleModelName) {
Bukkit.getLogger().info("Vehicle with model '" + vehicleModelName + "' has been successfully removed from the police garage.");
} catch (DataStorageException e) {
// Handle any errors that occur during the removal process
Bukkit.getLogger().warning("Error: Failed to remove vehicle with model '" + vehicleModelName + "' from the garage.");
throw new RuntimeException("Error while removing vehicle", e);
Bukkit.getLogger().log(Level.WARNING, "Error: Failed to remove vehicle with model '" + vehicleModelName + "' from the garage.", e);
}
} else {
// If no matching vehicle was found, print an error message