diff --git a/megamek/src/megamek/common/util/BuildingBlock.java b/megamek/src/megamek/common/util/BuildingBlock.java index ecd2eb1a1e0..77f7e24034f 100644 --- a/megamek/src/megamek/common/util/BuildingBlock.java +++ b/megamek/src/megamek/common/util/BuildingBlock.java @@ -501,7 +501,7 @@ public boolean writeBlockFile(File file) { if (file.exists()) { if (!file.delete()) { - logger.error("Unable to delete file with name " + file); + logger.error("Unable to delete file with name " + file.getName()); return false; } }