From c40d39cfe4383e0da5099b0200abfcc93ffc3bec Mon Sep 17 00:00:00 2001 From: jsimomaa Date: Fri, 18 Oct 2019 09:27:03 +0300 Subject: [PATCH] Log SCL compilation errors in AbstractExpressionCompilationRequest There are cases where stack trace for compilation error would be nice to have gitlab #403 Change-Id: Iefeb2fb0b89040ad3696f484403b601bbfbf4b85 --- .../db/layer0/scl/AbstractExpressionCompilationRequest.java | 1 + 1 file changed, 1 insertion(+) diff --git a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/scl/AbstractExpressionCompilationRequest.java b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/scl/AbstractExpressionCompilationRequest.java index 28b10c896..3fcdf66ab 100644 --- a/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/scl/AbstractExpressionCompilationRequest.java +++ b/bundles/org.simantics.db.layer0/src/org/simantics/db/layer0/scl/AbstractExpressionCompilationRequest.java @@ -160,6 +160,7 @@ implements Read> { 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()); -- 2.47.1