From: James William Dumay Date: Wed, 10 Dec 2008 01:29:46 +0000 (+0000) Subject: MRM-1034 - Browse artifact error does not show correct error message X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=670e5168e616c454e253a7d562abe415afabd47b;p=archiva.git MRM-1034 - Browse artifact error does not show correct error message git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/archiva-search-improvements@724949 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java index 56fd71aa0..8ec411f0d 100644 --- a/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java +++ b/archiva-modules/archiva-web/archiva-webapp/src/main/java/org/apache/maven/archiva/web/action/ShowArtifactAction.java @@ -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 ) )