Commit e1db19d7 authored by Gaston Dombiak's avatar Gaston Dombiak Committed by gato

Print SQL error when inserting a new row in jiveRoster fails.

git-svn-id: http://svn.igniterealtime.org/svn/repos/openfire/trunk@9295 b35dd754-fafc-0310-a699-88a17e54d16e
parent 69bd190b
......@@ -13,11 +13,11 @@ package org.jivesoftware.openfire.roster;
import org.jivesoftware.database.DbConnectionManager;
import org.jivesoftware.database.SequenceManager;
import org.jivesoftware.openfire.user.UserAlreadyExistsException;
import org.jivesoftware.openfire.user.UserNotFoundException;
import org.jivesoftware.util.JiveConstants;
import org.jivesoftware.util.LocaleUtils;
import org.jivesoftware.util.Log;
import org.jivesoftware.openfire.user.UserAlreadyExistsException;
import org.jivesoftware.openfire.user.UserNotFoundException;
import org.xmpp.packet.JID;
import java.sql.Connection;
......@@ -105,6 +105,7 @@ public class RosterItemProvider {
insertGroups(rosterID, item.getGroups().iterator(), con);
}
catch (SQLException e) {
Log.warn("Error trying to insert a new row in jiveRoster", e);
throw new UserAlreadyExistsException(item.getJid().toBareJID());
}
finally {
......
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