Better diagnostics in CompilationException

This commit is contained in:
Andrey Breslav
2013-04-08 18:33:23 +04:00
parent d612a1167d
commit df9f4ea6d6
@@ -60,6 +60,7 @@ public class CompilationException extends RuntimeException {
message.append("Cause: ").append(causeMessage == null ? cause.toString() : causeMessage).append("\n");
}
message.append("File being compiled and position: ").append(DiagnosticUtils.atLocation(element)).append("\n");
message.append("PsiElement: ").append(element.getText()).append("\n");
message.append("The root cause was thrown at: ").append(where());
return message.toString();