-
Enhancement
-
Resolution: Won't Do
-
Major
-
None
-
None
-
None
InvocationTargetException
in arquillian-forge-core appears without any message and with null cause. The cause is in target property.
Then the logging frameworks do not show the additional information.
I suggest to either copy the error to the cause property, or at least to copy the message.
I.e. change this in org.jboss.forge.arquillian.ForgeTestMethodExecutor
if (e.getCause() != null && e.getCause() instanceof Exception) throw (Exception) e.getCause(); else throw e;
into something like
if (e.getCause() != null) { if( e.getCause() instanceof Exception) throw (Exception) e.getCause(); else{ e = new InvocationTargetException( target, target.getMessage); // And some reflection to set the cause. throw e; } }
I would make a PR, but I didn't find where the repo for arq-forge-core is.
- is related to
-
FORGE-1969 Exception wrapping loses information
- Closed