jira-importer commented on issue #1165:
URL: https://github.com/apache/maven-scm/issues/1165#issuecomment-2964649565

   **[Elliotte Rusty 
Harold](https://issues.apache.org/jira/secure/ViewProfile.jspa?name=elharo)** 
commented
   
   Problem is PlexusTestCase.setUp catches AssumptionViolatedException and 
converts it into an AssertionFailure. This is your weekly reminder never to 
catch java.lang.Exception.
   
   `}}{{try`
   ` {`
   ` configuration = getCustomConfiguration();``if ( configuration == null )`
   ` {`
   ` configuration = getConfiguration();`
   ` `}
   ` `}
   ` catch ( Exception e )`
   ` {`
   ` System.out.println( "Error with configuration:" );``System.out.println( 
"configuration = " + configuration );``fail( e.getMessage() );`
   ` `}
   


-- 
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-unsubscr...@maven.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to