mirror of https://github.com/apache/archiva.git
fix chaining of user manager
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1449093 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1bbfd9482d
commit
bffd5ae70e
|
@ -209,7 +209,7 @@ public class ArchivaConfigurableUsersManager
|
|||
}
|
||||
|
||||
}
|
||||
UserManagerException lastException = null;
|
||||
Exception lastException = null;
|
||||
for ( UserManager userManager : userManagerPerId.values() )
|
||||
{
|
||||
try
|
||||
|
@ -228,7 +228,7 @@ public class ArchivaConfigurableUsersManager
|
|||
{
|
||||
lastException = e;
|
||||
}
|
||||
catch ( UserManagerException e )
|
||||
catch ( Exception e )
|
||||
{
|
||||
lastException = e;
|
||||
}
|
||||
|
@ -238,7 +238,7 @@ public class ArchivaConfigurableUsersManager
|
|||
{
|
||||
if ( lastException != null )
|
||||
{
|
||||
throw lastException;
|
||||
throw new UserManagerException( lastException.getMessage(), lastException );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue