diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/GroovyBlock.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/GroovyBlock.java index 674675accbb7..2ca6d2f52539 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/GroovyBlock.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/formatter/GroovyBlock.java @@ -114,11 +114,11 @@ public class GroovyBlock implements Block, GroovyElementTypes, ASTBlock { } catch (AssertionError e) { final PsiFile file = myNode.getPsi().getContainingFile(); - LogMessageEx.error(LOG, "Formatting failed for file " + file.getName(), file.getText(), myNode.getText()); + LogMessageEx.error(LOG, "Formatting failed for file " + file.getName(), e, file.getText(), myNode.getText()); } catch (RuntimeException e) { final PsiFile file = myNode.getPsi().getContainingFile(); - LogMessageEx.error(LOG, "Formatting failed for file " + file.getName(), file.getText(), myNode.getText()); + LogMessageEx.error(LOG, "Formatting failed for file " + file.getName(), e, file.getText(), myNode.getText()); } } return mySubBlocks;