Skip to content

Commit 9424517

Browse files
committed
fix: Include exception in error message when building player inventory
1 parent 9acd92e commit 9424517

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interfaces/src/main/kotlin/com/noxcrew/interfaces/exception/StandardInterfacesExceptionHandler.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,14 @@ public open class StandardInterfacesExceptionHandler(
2525
// When building a player menu we absolutely do not want to fail as
2626
// it results in nothing being drawn. We retry up to 3 times!
2727
logger.error(
28-
"Failed `${context.operation.description}` for ${context.player.name}, retrying (${context.retries + 1}/3)!",
28+
"Failed `${context.operation.description}` for ${context.player.name}, retrying (${context.retries + 1}/3)!", exception
2929
)
3030
InterfacesExceptionResolution.RETRY
3131
} else {
3232
// Ignore the drawing but kick the player off the server
3333
logger.error(
3434
"Failed `${context.operation.description}` for ${context.player.name} 3 times, " +
35-
"kicking player to prevent invalid state",
35+
"kicking player to prevent invalid state", exception
3636
)
3737
InterfacesListeners.INSTANCE.runSync {
3838
context.player.kick(Component.text("Unknown exception occurred while rendering GUI menus"))

0 commit comments

Comments
 (0)