From: jsimomaa Date: Fri, 18 Oct 2019 06:27:03 +0000 (+0300) Subject: Log SCL compilation errors in AbstractExpressionCompilationRequest X-Git-Tag: v1.43.0~136^2~49 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F62%2F3362%2F1;p=simantics%2Fplatform.git 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 --- 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());