report unsupported statements

This commit is contained in:
Egor Ushakov
2018-11-16 12:45:07 +03:00
parent ef607151d0
commit 2ee0551d03
2 changed files with 3 additions and 2 deletions

View File

@@ -228,6 +228,7 @@ public class EvaluatorBuilderImpl implements EvaluatorBuilder {
@Override
public void visitStatement(PsiStatement statement) {
LOG.error(DebuggerBundle.message("evaluation.error.statement.not.supported", statement.getText()));
throwEvaluateException(DebuggerBundle.message("evaluation.error.statement.not.supported", statement.getText()));
}

View File

@@ -114,8 +114,8 @@ evaluation.error.lebeled.loops.not.found=No loop statements labeled with label '
evaluation.error.reference.type.expected=Reference type expected
evaluation.error.variable.not.declared=Variable ''{0}'' is not declared
evaluation.error.variable.already.declared=Variable ''{0}'' is already declared
evaluation.error.operation.not.supported=Operation ''{0}'' not supported
evaluation.error.statement.not.supported=Statement ''{0}'' not supported
evaluation.error.operation.not.supported=Operation ''{0}'' is not supported
evaluation.error.statement.not.supported=Statement ''{0}'' is not supported
evaluation.error.incompatible.variable.initializer.type=Initializer for ''{0}'' has incompatible type
evaluation.error.local.variable.missing.from.class.closure=Local variable ''{0}'' not found in class closure
evaluation.error.local.variable.missing=Cannot find local variable ''{0}''