Are these stack trace windows a feature of Tornado...
# tornadofx
m
Are these stack trace windows a feature of TornadoFX or JavaFX? How can I turn them off (and make uncaught errors go to the console like usual)?
b
Looks unrelated to tornadofx or javafx. Looks like an issue with an undefined dependency with Koin
r
It's a TornadoFX feature, overriding the default exception handler to display a popup.
b
at the moment in no way, you can start an issue. You can work around this by manually catching exceptions.
m
You have to override this code in `FX.kt`:
Copy code
fun installErrorHandler() {
            if (Thread.getDefaultUncaughtExceptionHandler() == null)
                Thread.setDefaultUncaughtExceptionHandler(DefaultErrorHandler())
        }
and set your error handler, instead.
m
Thank you, that works. 🙂 (The code snippet was in FX.kt for me, but no difference.)
m
Sorry, I was in a hurry. I amended my previous message.