diff options
Diffstat (limited to 'OpenSim/Framework/WebUtil.cs')
-rw-r--r-- | OpenSim/Framework/WebUtil.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/OpenSim/Framework/WebUtil.cs b/OpenSim/Framework/WebUtil.cs index f33b7a2..87eeeb6 100644 --- a/OpenSim/Framework/WebUtil.cs +++ b/OpenSim/Framework/WebUtil.cs | |||
@@ -987,6 +987,17 @@ namespace OpenSim.Framework | |||
987 | 987 | ||
988 | } | 988 | } |
989 | } | 989 | } |
990 | catch (WebException e) | ||
991 | { | ||
992 | HttpWebResponse hwr = (HttpWebResponse)e.Response; | ||
993 | |||
994 | if (hwr != null && hwr.StatusCode == HttpStatusCode.NotFound) | ||
995 | return deserial; | ||
996 | else | ||
997 | m_log.ErrorFormat( | ||
998 | "[SynchronousRestObjectRequester]: WebException {0} {1} {2} {3}", | ||
999 | requestUrl, typeof(TResponse).ToString(), e.Message, e.StackTrace); | ||
1000 | } | ||
990 | catch (System.InvalidOperationException) | 1001 | catch (System.InvalidOperationException) |
991 | { | 1002 | { |
992 | // This is what happens when there is invalid XML | 1003 | // This is what happens when there is invalid XML |