]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Merge "Catch Throwable instead of Exception in SCL AsyncUtils"
authorTuukka Lehtonen <tuukka.lehtonen@semantum.fi>
Thu, 19 Dec 2019 11:28:07 +0000 (11:28 +0000)
committerGerrit Code Review <gerrit2@simantics>
Thu, 19 Dec 2019 11:28:07 +0000 (11:28 +0000)
bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/utils/AsyncUtils.java

index d771a821e8e65329134ebd8af37af7779b21866a..f0edd2c99e9f07423a1d9dd543bc6696e6884cd7 100644 (file)
@@ -43,9 +43,9 @@ public class AsyncUtils {
             SCLContext.push(context);
             try {
                 f.apply(Tuple0.INSTANCE);
-            } catch (Exception e) {
-                LOGGER.error("Could not execute async", e);
-                printError(e);
+            } catch (Throwable t) {
+                LOGGER.error("Could not execute async", t);
+                printError(t);
             } finally {
                 SCLContext.pop();
             }