Skip to content

Commit

Permalink
MSHARED-1142 fixes of tailing spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
Koziolek committed Sep 14, 2022
1 parent 64a4e5c commit b50a734
Showing 1 changed file with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ public File download( String url, List<TransferListener> transferListeners, Mess
}
catch ( MalformedURLException e )
{
throw new DownloadFailedException( url, "Download failed due to invalid URL. Reason: " + e.getMessage(),
throw new DownloadFailedException( url, "Download failed due to invalid URL.",
e );
}

Expand All @@ -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 All @@ -128,7 +128,7 @@ public File download( String url, List<TransferListener> transferListeners, Mess
}
catch ( IOException e )
{
throw new DownloadFailedException( url, "Failed to create temporary file target for download. ", e );
throw new DownloadFailedException( url, "Failed to create temporary file target for download.", e );
}

messageHolder.addMessage( "Download target is: " + downloaded.getAbsolutePath() );
Expand All @@ -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 b50a734

Please sign in to comment.