You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by GitBox <gi...@apache.org> on 2022/03/13 13:07:36 UTC
[GitHub] [maven-surefire] slawekjaranowski commented on pull request #486: [SUREFIRE-2001] Sometimes the plugin prints an internal stack trace on BUILD FAILURE
slawekjaranowski commented on pull request #486:
URL: https://github.com/apache/maven-surefire/pull/486#issuecomment-1066097475
Never mind if we use one or two exceptions - this change add code, like:
``` java
throw firstForkException == null
? new MojoExecutionException( msg )
: new MojoExecutionException( msg, firstForkException );
```
IMHO it is not necessary the same result is:
```java
throw new MojoExecutionException( msg, firstForkException );
```
we needn't check if cause is null or not
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@maven.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org