Log the stacktraces of errors when rendering elements in debug mode
This commit is contained in:
parent
61ccb4ae62
commit
ab0b6e66c8
|
@ -22,6 +22,7 @@ abstract class Element(
|
|||
} catch (t: Throwable) {
|
||||
with(Snowy.logs) {
|
||||
error("An element from snowy threw an error: \n\t$t")
|
||||
debug("\t${t.stackTraceToString()}")
|
||||
warn("Rendering of snowy UI elements will now be disabled to avoid further errors.")
|
||||
caughtError = true
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue