From: jsimomaa Date: Thu, 19 Dec 2019 08:47:46 +0000 (+0200) Subject: Catch Throwable instead of Exception in SCL AsyncUtils X-Git-Tag: v1.43.0~136^2~15^2 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F34%2F3734%2F1;p=simantics%2Fplatform.git Catch Throwable instead of Exception in SCL AsyncUtils gitlab #435 Change-Id: Ibcd892ec9d3e9b41f4c9bea70f3a2470dfdef132 --- 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(); }