mirror of
https://github.com/apache/archiva.git
synced 2025-02-06 18:19:02 +00:00
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:
parent
b1d019499a
commit
670e5168e6
@ -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 ) )
|
||||
|
Loading…
x
Reference in New Issue
Block a user