File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -168,14 +168,19 @@ public static void main(final String[] args) throws Exception {
168168 buildnum .load (buildnumberStream );
169169 }
170170 log ("processing.py build " , buildnum .getProperty ("build.number" ));
171- if (Arrays .asList (args ).contains (ExportedSketch .ARGS_EXPORTED )) {
172- sketch = new ExportedSketch (args );
173- } else {
174- sketch = new StandaloneSketch (args );
175- }
176-
177- runSketchBlocking (sketch , new StreamPrinter (System .out ), new StreamPrinter (System .err ));
178171
172+ // Try / catch to make sure we log errors
173+ try {
174+ if (Arrays .asList (args ).contains (ExportedSketch .ARGS_EXPORTED )) {
175+ sketch = new ExportedSketch (args );
176+ } else {
177+ sketch = new StandaloneSketch (args );
178+ }
179+ runSketchBlocking (sketch , new StreamPrinter (System .out ), new StreamPrinter (System .err ));
180+ } catch (Throwable t ) {
181+ System .err .println (t );
182+ System .exit (-1 );
183+ }
179184 System .exit (0 );
180185 }
181186
You can’t perform that action at this time.
0 commit comments