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:
Olivier Lamy 2013-02-22 16:05:39 +00:00
parent 1bbfd9482d
commit bffd5ae70e
1 changed files with 3 additions and 3 deletions

View File

@ -209,7 +209,7 @@ public class ArchivaConfigurableUsersManager
} }
} }
UserManagerException lastException = null; Exception lastException = null;
for ( UserManager userManager : userManagerPerId.values() ) for ( UserManager userManager : userManagerPerId.values() )
{ {
try try
@ -228,7 +228,7 @@ public class ArchivaConfigurableUsersManager
{ {
lastException = e; lastException = e;
} }
catch ( UserManagerException e ) catch ( Exception e )
{ {
lastException = e; lastException = e;
} }
@ -238,7 +238,7 @@ public class ArchivaConfigurableUsersManager
{ {
if ( lastException != null ) if ( lastException != null )
{ {
throw lastException; throw new UserManagerException( lastException.getMessage(), lastException );
} }
} }