]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Catch Throwable instead of Exception in SCL AsyncUtils 24/3724/1
authorjsimomaa <jani.simomaa@gmail.com>
Thu, 19 Dec 2019 08:47:46 +0000 (10:47 +0200)
committerjsimomaa <jani.simomaa@gmail.com>
Thu, 19 Dec 2019 08:47:46 +0000 (10:47 +0200)
gitlab #435

Change-Id: Ibcd892ec9d3e9b41f4c9bea70f3a2470dfdef132

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();
             }