Small improvement
This commit is contained in:
parent
346560cdde
commit
2b56d42a48
1 changed files with 1 additions and 2 deletions
|
@ -128,8 +128,7 @@ public void removeVehicleFromPoliceGarage(String vehicleModelName) {
|
||||||
Bukkit.getLogger().info("Vehicle with model '" + vehicleModelName + "' has been successfully removed from the police garage.");
|
Bukkit.getLogger().info("Vehicle with model '" + vehicleModelName + "' has been successfully removed from the police garage.");
|
||||||
} catch (DataStorageException e) {
|
} catch (DataStorageException e) {
|
||||||
// Handle any errors that occur during the removal process
|
// Handle any errors that occur during the removal process
|
||||||
Bukkit.getLogger().warning("Error: Failed to remove vehicle with model '" + vehicleModelName + "' from the garage.");
|
Bukkit.getLogger().log(Level.WARNING, "Error: Failed to remove vehicle with model '" + vehicleModelName + "' from the garage.", e);
|
||||||
throw new RuntimeException("Error while removing vehicle", e);
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// If no matching vehicle was found, print an error message
|
// If no matching vehicle was found, print an error message
|
||||||
|
|
Loading…
Add table
Reference in a new issue