From: jsimomaa Date: Mon, 19 Jun 2017 13:30:03 +0000 (+0300) Subject: Print AssertionError to SCLReportingHandler X-Git-Tag: v1.31.0~303 X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=commitdiff_plain;h=c26cba49344b973fba8022c9e6d12adea93abd48;hp=8cdf74e3b1f0db5f3ef65f0cb9a51d7b6ad99178 Print AssertionError to SCLReportingHandler refs #7319 Change-Id: Idb97cbec59532d8a48db8f5e412a7df036a2c510 --- diff --git a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/commands/CommandSession.java b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/commands/CommandSession.java index d7f1aa11e..9ff2ebabb 100644 --- a/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/commands/CommandSession.java +++ b/bundles/org.simantics.scl.compiler/src/org/simantics/scl/compiler/commands/CommandSession.java @@ -511,7 +511,7 @@ public class CommandSession { if(e.location != Locations.NO_LOCATION) handler.printError(parser.reader.locationUnderlining(e.location)); handler.printError(e.getMessage()); - } catch(Exception e) { + } catch (Exception | AssertionError e) { if(e instanceof InterruptedException) handler.printError("Execution interrupted."); else