File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
core/src/main/java/org/seedstack/seed/core Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -109,14 +109,18 @@ private Seed() {
109109
110110 // Setup a default exception handler that translates exceptions
111111 Thread .setDefaultUncaughtExceptionHandler ((thread , throwable ) -> {
112- Throwable translated ;
113- if (throwable instanceof Exception ) {
114- translated = Seed .translateException ((Exception ) throwable );
115- } else {
116- translated = throwable ;
112+ try {
113+ Throwable translated ;
114+ if (throwable instanceof Exception ) {
115+ translated = Seed .translateException ((Exception ) throwable );
116+ } else {
117+ translated = throwable ;
118+ }
119+ diagnosticManager .dumpDiagnosticReport (throwable );
120+ translated .printStackTrace (System .err );
121+ } catch (Throwable t ) {
122+ throwable .printStackTrace ();
117123 }
118- diagnosticManager .dumpDiagnosticReport (throwable );
119- translated .printStackTrace (System .err );
120124 });
121125
122126 // Initialize logging subsystem (should silence logs until logging activation later in the initialization)
You can’t perform that action at this time.
0 commit comments