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
This commit is contained in:
James William Dumay 2008-12-10 01:29:46 +00:00
parent b1d019499a
commit 670e5168e6

View File

@ -108,10 +108,10 @@ public String artifact()
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 @@ private List<String> getObservableRepos()
return Collections.emptyList();
}
@Override
public void validate()
{
if ( StringUtils.isBlank( groupId ) )