Skip to content

Commit

Permalink
[MJAVADOC-694] Avoid empty warn message from getResolvePathResult
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Dec 20, 2021
1 parent 6b1515e commit b51c5d8
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5543,12 +5543,16 @@ private ResolvePathResult getResolvePathResult( File artifactFile )
}
catch ( IOException | RuntimeException /* e.g java.lang.module.FindException */ e )
{
Throwable cause = e;
while ( cause.getCause() != null )
if ( getLog().isDebugEnabled() )
{
cause = cause.getCause();
Throwable cause = e;
while ( cause.getCause() != null )
{
cause = cause.getCause();
}

getLog().debug( "resolve path for: " + artifactFile + " cause error: " + cause );
}
getLog().warn( e.getMessage() );
}
return resolvePathResult;
}
Expand Down

0 comments on commit b51c5d8

Please sign in to comment.