diff --git a/compiler/cli/cli-common/src/org/jetbrains/jet/cli/common/messages/PrintingMessageCollector.java b/compiler/cli/cli-common/src/org/jetbrains/jet/cli/common/messages/PrintingMessageCollector.java index 3e20629a770..d07a8a8d6d4 100644 --- a/compiler/cli/cli-common/src/org/jetbrains/jet/cli/common/messages/PrintingMessageCollector.java +++ b/compiler/cli/cli-common/src/org/jetbrains/jet/cli/common/messages/PrintingMessageCollector.java @@ -54,7 +54,9 @@ public class PrintingMessageCollector implements MessageCollector { } errStream.println(text); } - groupedMessages.put(location.getPath(), text); + else { + groupedMessages.put(location.getPath(), text); + } } public void printToErrStream() {