From 8d64a6ef7f38bfd22936d0440fdce301ee9ff7ca Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 31 Jan 2011 19:17:37 +0100 Subject: [PATCH] EA-25351 (diagnostics) --- .../intellij/psi/impl/source/tree/LazyParseableElement.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/psi/impl/source/tree/LazyParseableElement.java b/platform/lang-impl/src/com/intellij/psi/impl/source/tree/LazyParseableElement.java index 61ff91733922..6eefc3ef646b 100644 --- a/platform/lang-impl/src/com/intellij/psi/impl/source/tree/LazyParseableElement.java +++ b/platform/lang-impl/src/com/intellij/psi/impl/source/tree/LazyParseableElement.java @@ -164,7 +164,7 @@ public class LazyParseableElement extends CompositeElement { } if (TreeUtil.getFileElement(this) == null) { - LOG.error("Chameleons must not be parsed till they're in file tree"); + LOG.error("Chameleons must not be parsed till they're in file tree: " + this); } ApplicationManager.getApplication().assertReadAccessAllowed(); @@ -174,9 +174,9 @@ public class LazyParseableElement extends CompositeElement { if (parsedNode == null && myText.length() > 0) { if (ApplicationManagerEx.getApplicationEx().isInternal() && !ApplicationManager.getApplication().isUnitTestMode()) { - LOG.error("No parse for a non-empty string: " + myText + "; type=" + getElementType()); + LOG.error("No parse for a non-empty string: " + myText + "; type=" + type + " (" + type.getClass().getName() + ")"); } else { - LOG.error("No parse for a non-empty string: type=" + getElementType()); + LOG.error("No parse for a non-empty string: type=" + type + " (" + type.getClass().getName() + ")"); } }