Report exceptions from both makes to Exception Analyzer
Original commit: 3e1a5a7be1
This commit is contained in:
@@ -37,10 +37,10 @@ import java.util.Collection;
|
|||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import static org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity.ERROR;
|
import static org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity.ERROR;
|
||||||
|
import static org.jetbrains.jet.cli.common.messages.CompilerMessageSeverity.EXCEPTION;
|
||||||
|
|
||||||
public class KotlinBuilder extends ModuleLevelBuilder {
|
public class KotlinBuilder extends ModuleLevelBuilder {
|
||||||
|
|
||||||
private static final String KOTLIN_COMPILER_NAME = "Kotlin";
|
|
||||||
private static final String KOTLIN_BUILDER_NAME = "Kotlin Builder";
|
private static final String KOTLIN_BUILDER_NAME = "Kotlin Builder";
|
||||||
|
|
||||||
protected KotlinBuilder() {
|
protected KotlinBuilder() {
|
||||||
@@ -133,10 +133,14 @@ public class KotlinBuilder extends ModuleLevelBuilder {
|
|||||||
@NotNull String message,
|
@NotNull String message,
|
||||||
@NotNull CompilerMessageLocation location
|
@NotNull CompilerMessageLocation location
|
||||||
) {
|
) {
|
||||||
|
String prefix = "";
|
||||||
|
if (severity == EXCEPTION) {
|
||||||
|
prefix = CompilerRunnerConstants.INTERNAL_ERROR_PREFIX;
|
||||||
|
}
|
||||||
context.processMessage(new CompilerMessage(
|
context.processMessage(new CompilerMessage(
|
||||||
KOTLIN_COMPILER_NAME,
|
CompilerRunnerConstants.KOTLIN_COMPILER_NAME,
|
||||||
kind(severity),
|
kind(severity),
|
||||||
message,
|
prefix + message,
|
||||||
location.getPath(),
|
location.getPath(),
|
||||||
-1, -1, -1,
|
-1, -1, -1,
|
||||||
location.getLine(),
|
location.getLine(),
|
||||||
|
|||||||
Reference in New Issue
Block a user