From 2b56d42a482b2bc91b9dba510c12cd8df6219e86 Mon Sep 17 00:00:00 2001 From: SBDeveloper Date: Sun, 12 Jan 2025 19:33:51 +0000 Subject: [PATCH] Small improvement --- vehiclesplus-v3/api/examples.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/vehiclesplus-v3/api/examples.md b/vehiclesplus-v3/api/examples.md index 83d1c77..39ee4f7 100644 --- a/vehiclesplus-v3/api/examples.md +++ b/vehiclesplus-v3/api/examples.md @@ -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