From 8d15890554990a359da8294d1a25de58ab3cab79 Mon Sep 17 00:00:00 2001 From: Tedd Hansen Date: Sat, 5 Jan 2008 02:10:37 +0000 Subject: And another log-instead-of-crash... when creating user fails. --- OpenSim/Grid/UserServer/Main.cs | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'OpenSim/Grid/UserServer/Main.cs') diff --git a/OpenSim/Grid/UserServer/Main.cs b/OpenSim/Grid/UserServer/Main.cs index 0f1d845..4645c7e 100644 --- a/OpenSim/Grid/UserServer/Main.cs +++ b/OpenSim/Grid/UserServer/Main.cs @@ -134,9 +134,25 @@ namespace OpenSim.Grid.UserServer tempMD5Passwd = Util.Md5Hash(Util.Md5Hash(tempMD5Passwd) + ":" + ""); - LLUUID userID = m_userManager.AddUserProfile(tempfirstname, templastname, tempMD5Passwd, regX, regY); - RestObjectPoster.BeginPostObject(m_userManager._config.InventoryUrl + "CreateInventory/", - userID.UUID); + LLUUID userID = new LLUUID(); + try + { + userID = + m_userManager.AddUserProfile(tempfirstname, templastname, tempMD5Passwd, regX, regY); + } catch (Exception ex) + { + m_console.Error("SERVER", "Error creating user: {0}", ex.ToString()); + } + + try + { + RestObjectPoster.BeginPostObject(m_userManager._config.InventoryUrl + "CreateInventory/", + userID.UUID); + } + catch (Exception ex) + { + m_console.Error("SERVER", "Error creating inventory for user: {0}", ex.ToString()); + } m_lastCreatedUser = userID; break; } -- cgit v1.1