Updated Screen Switch to give better error logging on failed load
This commit is contained in:
parent
9e7b691970
commit
b4f63d2500
1 changed files with 2 additions and 1 deletions
|
@ -88,8 +88,9 @@ public class ScreenSwitch extends SharedCodeController {
|
|||
}catch (IOException e){ // If an error occurs, print out error message on STDIO and crash gracefully
|
||||
System.err.print("Loading the FXML file ");
|
||||
System.err.print(newScene.getFXML());
|
||||
System.err.println("Failed!");
|
||||
System.err.println(" Failed!");
|
||||
System.err.println(e.toString());
|
||||
e.printStackTrace(System.err);
|
||||
System.exit(-1);
|
||||
}
|
||||
return root;
|
||||
|
|
Reference in a new issue