Use language ID

language.toString() results in "#Language: lang" with #Langauge treated as a hash tag while it should be "#lang", where lang is a language name.
This commit is contained in:
Rustam Vishnyakov
2018-07-05 16:30:38 +03:00
parent 0612021115
commit d221b25aba
@@ -121,7 +121,7 @@ public class PsiInvalidElementAccessException extends RuntimeException implement
@Nullable Object trace) {
String reason = "Element: " + element.getClass();
if (!recursiveInvocation) {
reason += " #" + element.getLanguage() + " ";
reason += " #" + element.getLanguage().getID() + " ";
String traceText = !isTrackingInvalidation() ? "disabled" :
trace != null ? "see attachment" :
"no info";