diff --git a/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java b/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java index 2fdb7aac0a1e..b6b4ead5eab5 100644 --- a/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java +++ b/plugins/groovy/src/org/jetbrains/plugins/groovy/lang/psi/impl/GroovyPsiElementFactoryImpl.java @@ -389,7 +389,7 @@ public class GroovyPsiElementFactoryImpl extends GroovyPsiElementFactory { return ((GrMethod)defintion); } catch (Exception error) { - throw new IncorrectOperationException("Can't create method from text: '" + file.getText() + "'"); + throw new IncorrectOperationException("Can't create method from text: '" + file.getText() + "'", error); } }