File tree Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Expand file tree Collapse file tree 3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change 11Package: jme3-spaceshift-editor
2- Version: 0.1
2+ Version: 0.3.5
33Section: tool
44Maintainer: spaceshift.ru <
[email protected] >
55Priority: optional
Original file line number Diff line number Diff line change @@ -123,15 +123,16 @@ protected static void configureLogger() {
123123
124124 final Path logFolder = Paths .get (Config .PROJECT_PATH , "log" );
125125
126- if (!Files .exists (logFolder )) {
127- try {
128- Files .createDirectories (logFolder );
129- } catch (IOException e ) {
130- e .printStackTrace ();
131- }
126+ if (Files .exists (logFolder )) {
127+ return ;
132128 }
133129
134- LoggerManager .addListener (new FolderFileListener (logFolder ));
130+ try {
131+ Files .createDirectories (logFolder );
132+ LoggerManager .addListener (new FolderFileListener (logFolder ));
133+ } catch (IOException e ) {
134+ e .printStackTrace ();
135+ }
135136 }
136137
137138 /**
Original file line number Diff line number Diff line change 1313public class Starter extends Application {
1414
1515 public static void main (String [] args ) throws IOException {
16- Editor .start (args );
16+ try {
17+ Editor .start (args );
18+ } catch (Throwable e ) {
19+ e .printStackTrace ();
20+ System .exit (-1 );
21+ }
1722 }
1823
1924 @ Override
You can’t perform that action at this time.
0 commit comments