]> gerrit.simantics Code Review - simantics/platform.git/blobdiff - bundles/org.simantics.scl.reflection/src/org/simantics/scl/reflection/functions/ConstructorFunction.java
Sync git svn branch with SVN repository r33144.
[simantics/platform.git] / bundles / org.simantics.scl.reflection / src / org / simantics / scl / reflection / functions / ConstructorFunction.java
index f7660896fa86cc950bbe6756acbf15257489e302..7bd3b008c8bbc8657bd2d6073a25125ec98af633 100755 (executable)
@@ -28,7 +28,7 @@ public class ConstructorFunction extends FunctionImplN {
         } catch (IllegalAccessException e) {\r
             throw new RuntimeException(e);\r
         } catch (InvocationTargetException e) {\r
-            throw new RuntimeException(e);\r
+            throw new RuntimeException(e.getCause());\r
         }\r
     }\r
     \r