Skip to content

Commit

Permalink
[MSHARED-1143] Remove e.getMessage() duplication when e is passed as …
Browse files Browse the repository at this point in the history
…object

This closes apache#17
  • Loading branch information
Koziolek authored and michael-o committed Sep 14, 2022
1 parent b50a734 commit f8f2633
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public File download( String url, List<TransferListener> transferListeners, Mess
}
catch ( UnsupportedProtocolException e )
{
throw new DownloadFailedException( url, "Download failed.", e );
throw new DownloadFailedException( url, "Download failed", e );
}

messageHolder.addMessage( "Using wagon: " + wagon + " to download: " + url );
Expand Down Expand Up @@ -155,11 +155,11 @@ public File download( String url, List<TransferListener> transferListeners, Mess
}
catch ( ConnectionException e )
{
throw new DownloadFailedException( url, "Download failed.", e );
throw new DownloadFailedException( url, "Download failed", e );
}
catch ( AuthenticationException e )
{
throw new DownloadFailedException( url, "Download failed.", e );
throw new DownloadFailedException( url, "Download failed", e );
}

messageHolder.addMessage( "Getting: " + remotePath );
Expand All @@ -175,15 +175,15 @@ public File download( String url, List<TransferListener> transferListeners, Mess
}
catch ( TransferFailedException e )
{
throw new DownloadFailedException( url, "Download failed.", e );
throw new DownloadFailedException( url, "Download failed", e );
}
catch ( ResourceDoesNotExistException e )
{
throw new DownloadFailedException( url, "Download failed.", e );
throw new DownloadFailedException( url, "Download failed", e );
}
catch ( AuthorizationException e )
{
throw new DownloadFailedException( url, "Download failed.", e );
throw new DownloadFailedException( url, "Download failed", e );
}
finally
{
Expand Down

0 comments on commit f8f2633

Please sign in to comment.