Better error handling in AssetServerPostHandler. Invalid XML causes an InvalidOperationException, not an XmlException

0.8.0.3
Oren Hurvitz 2014-05-06 09:43:07 +03:00
parent 614b9e14c4
commit ef262799ca
1 changed files with 1 additions and 1 deletions

View File

@ -64,7 +64,7 @@ namespace OpenSim.Server.Handlers.Asset
{
asset = (AssetBase)xs.Deserialize(request);
}
catch (XmlException)
catch (Exception)
{
httpResponse.StatusCode = (int)HttpStatusCode.BadRequest;
return null;