From 758cd982f1d219508df064e18559fc77072ad277 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Thu, 19 Dec 2019 10:47:46 +0200 Subject: [PATCH] Catch Throwable instead of Exception in SCL AsyncUtils gitlab #435 Change-Id: Ibcd892ec9d3e9b41f4c9bea70f3a2470dfdef132 --- .../src/org/simantics/scl/runtime/utils/AsyncUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/utils/AsyncUtils.java b/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/utils/AsyncUtils.java index d771a821e..f0edd2c99 100644 --- a/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/utils/AsyncUtils.java +++ b/bundles/org.simantics.scl.runtime/src/org/simantics/scl/runtime/utils/AsyncUtils.java @@ -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(); } -- 2.47.1