From c26cba49344b973fba8022c9e6d12adea93abd48 Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Mon, 19 Jun 2017 16:30:03 +0300 Subject: [PATCH] Print AssertionError to SCLReportingHandler refs #7319 Change-Id: Idb97cbec59532d8a48db8f5e412a7df036a2c510 --- .../src/org/simantics/scl/compiler/commands/CommandSession.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.43.2