Commit 1652e6fd authored by Dave Cridland's avatar Dave Cridland

Merge pull request #445 from sco0ter/usermanager

DefaultUserProvider: Rethrow exception instead of silently logging it.
parents be58aca7 23a0cc49
...@@ -163,8 +163,8 @@ public class DefaultUserProvider implements UserProvider { ...@@ -163,8 +163,8 @@ public class DefaultUserProvider implements UserProvider {
pstmt.setString(5, StringUtils.dateToMillis(now)); pstmt.setString(5, StringUtils.dateToMillis(now));
pstmt.execute(); pstmt.execute();
} }
catch (Exception e) { catch (SQLException e) {
Log.error(LocaleUtils.getLocalizedString("admin.error"), e); throw new RuntimeException(e);
} }
finally { finally {
DbConnectionManager.closeConnection(pstmt, con); DbConnectionManager.closeConnection(pstmt, con);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment