From 81387c07459ce725795c2e49c1b882e15f3a6c77 Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Tue, 24 Apr 2012 21:21:11 +0400 Subject: [PATCH] Fixing a regression: Compiler exceptions are now reported to the Exception Analyzer --- .../org/jetbrains/jet/plugin/compiler/JetCompiler.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java b/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java index 463835c5084..c9c3d4b972f 100644 --- a/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java +++ b/idea/src/org/jetbrains/jet/plugin/compiler/JetCompiler.java @@ -481,12 +481,18 @@ public class JetCompiler implements TranslatingCompiler { // We're directly inside the root tag: return; } - CompilerMessageCategory category = CATEGORIES.get(qName.toLowerCase()); + String qNameLowerCase = qName.toLowerCase(); + CompilerMessageCategory category = CATEGORIES.get(qNameLowerCase); if (category == null) { compileContext.addMessage(ERROR, "Unknown compiler message tag: " + qName, null, -1, -1); category = INFORMATION; } String text = message.toString(); + + if ("exception".equals(qNameLowerCase)) { + LOG.error(text); + } + if (category == STATISTICS) { compileContext.getProgressIndicator().setText(text); collector.learn(text);