v0.8.0: added log output to the desktop error handler
This commit is contained in:
parent
0259dd20c3
commit
8afa87fb10
|
@ -60,6 +60,7 @@ public class DesktopLauncher {
|
|||
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
|
||||
@Override
|
||||
public void uncaughtException(Thread thread, Throwable throwable) {
|
||||
Game.reportException(throwable);
|
||||
StringWriter sw = new StringWriter();
|
||||
PrintWriter pw = new PrintWriter(sw);
|
||||
throwable.printStackTrace(pw);
|
||||
|
|
Loading…
Reference in New Issue
Block a user