From 8cec0b3fa1fa36dd8823cc718dc914e8f7c0b9c8 Mon Sep 17 00:00:00 2001 From: Oren Hurvitz Date: Thu, 31 Oct 2013 09:00:59 +0200 Subject: If updating a user's profile notes fails then return an error Resolves http://opensimulator.org/mantis/view.php?id=6938 --- OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs') diff --git a/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs b/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs index d30cc22..d55142e 100644 --- a/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs +++ b/OpenSim/Server/Handlers/Profiles/UserProfilesHandlers.cs @@ -273,10 +273,10 @@ namespace OpenSim.Server.Handlers response.Result = OSD.SerializeMembers(note); return true; } - - object Notes = (object) note; - OSD.DeserializeMembers(ref Notes, (OSDMap)json["params"]); - return true; + + response.Error.Code = ErrorCode.InternalError; + response.Error.Message = "Error reading notes"; + return false; } public bool NotesUpdate(OSDMap json, ref JsonRpcResponse response) -- cgit v1.1