]> gerrit.simantics Code Review - simantics/platform.git/commitdiff
Log SCL compilation errors in AbstractExpressionCompilationRequest 62/3362/1
authorjsimomaa <jani.simomaa@gmail.com>
Fri, 18 Oct 2019 06:27:03 +0000 (09:27 +0300)
committerjsimomaa <jani.simomaa@gmail.com>
Fri, 18 Oct 2019 06:27:03 +0000 (09:27 +0300)
There are cases where stack trace for compilation error would be nice to
have

gitlab #403

Change-Id: Iefeb2fb0b89040ad3696f484403b601bbfbf4b85

bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/scl/AbstractExpressionCompilationRequest.java

index 28b10c896b2f2a99125964482343031e8eb1810e..3fcdf66ab042679ff7f0fde8e0c1cf520b8d8037 100644 (file)
@@ -160,6 +160,7 @@ implements Read<Function1<EvaluationContext,Object>> {
             else
                 throw e;
         } catch (SCLExpressionCompilationException e) {
+            LOGGER.error("Could not compile {}", evaluator.getExpressionText(), e);
             StringBuilder b = new StringBuilder();
             b.append("Couldn't compile '");
             b.append(evaluator.getExpressionText());