Parent exception should be passed to child exception.

This commit is contained in:
Sergey Evdokimov
2010-12-27 13:15:12 +03:00
parent 85cec70405
commit 820ce8b51e
@@ -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);
}
}