You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by mi...@apache.org on 2022/09/14 20:24:17 UTC

[maven-shared-io] 02/03: MSHARED-1142 fixes of tailing spaces

This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-shared-io.git

commit b50a734bbd9f9e175153e65e2afb2870c044d649
Author: Koziolek <bj...@gmail.com>
AuthorDate: Wed Sep 14 20:29:15 2022 +0200

    MSHARED-1142 fixes of tailing spaces
---
 .../maven/shared/io/download/DefaultDownloadManager.java | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/java/org/apache/maven/shared/io/download/DefaultDownloadManager.java b/src/main/java/org/apache/maven/shared/io/download/DefaultDownloadManager.java
index bcfe40c..a349599 100644
--- a/src/main/java/org/apache/maven/shared/io/download/DefaultDownloadManager.java
+++ b/src/main/java/org/apache/maven/shared/io/download/DefaultDownloadManager.java
@@ -100,7 +100,7 @@ public class DefaultDownloadManager
         }
         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 );
         }
 
@@ -113,7 +113,7 @@ public class DefaultDownloadManager
         }
         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 );
@@ -128,7 +128,7 @@ public class DefaultDownloadManager
         }
         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() );
@@ -155,11 +155,11 @@ public class DefaultDownloadManager
         }
         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 );
@@ -175,15 +175,15 @@ public class DefaultDownloadManager
         }
         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
         {