From: jsimomaa Date: Thu, 19 Dec 2019 08:47:46 +0000 (+0200) Subject: Catch Throwable instead of Exception in SCL AsyncUtils X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=758cd982f1d219508df064e18559fc77072ad277;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(); }