]> source.dussan.org Git - archiva.git/commitdiff
MRM-1034 - Browse artifact error does not show correct error message
authorJames William Dumay <jdumay@apache.org>
Wed, 10 Dec 2008 01:29:46 +0000 (01:29 +0000)
committerJames William Dumay <jdumay@apache.org>
Wed, 10 Dec 2008 01:29:46 +0000 (01:29 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-search-improvements@724949 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java

index 56fd71aa013e1d19bc347d742513f4a6892d586b..8ec411f0d77f9f634d3bdb7fe8b8940534506fca 100644 (file)
@@ -108,10 +108,10 @@ public class ShowArtifactAction
             this.repositoryId =
                 repoBrowsing.getRepositoryId( getPrincipal(), getObservableRepos(), groupId, artifactId, version );
         }
-        catch ( ObjectNotFoundException oe )
+        catch ( ObjectNotFoundException e )
         {
-            addActionError( "Unable to find project model for [" + groupId + ":" + artifactId + ":" + version + "]." );
-
+            getLogger().debug(e.getMessage(), e);
+            addActionError( e.getMessage() );
             return ERROR;
         }
 
@@ -208,6 +208,7 @@ public class ShowArtifactAction
         return Collections.emptyList();
     }
 
+    @Override
     public void validate()
     {
         if ( StringUtils.isBlank( groupId ) )