Include the exception message

This commit is contained in:
Phoenix616 2024-07-04 19:39:32 +01:00
parent e4c2fd6ef1
commit ec8032a688
No known key found for this signature in database
GPG Key ID: 40E2321E71738EB0

View File

@ -105,7 +105,7 @@ public class ItemDatabase {
itemDao.update(item);
updated.getAndIncrement();
} catch (RuntimeException e) {
ChestShop.getBukkitLogger().log(Level.SEVERE, "YAML of the item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted: \n" + serialized);
ChestShop.getBukkitLogger().log(Level.SEVERE, "YAML of the item with ID " + Base62.encode(item.getId()) + " (" + item.getId() + ") is corrupted: \n" + serialized + "\n" + e.getMessage());
}
}
} catch (IOException | ClassNotFoundException | SQLException e) {