aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Framework/Communications/RestClient.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Framework/Communications/RestClient.cs')
-rw-r--r--OpenSim/Framework/Communications/RestClient.cs12
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Framework/Communications/RestClient.cs b/OpenSim/Framework/Communications/RestClient.cs
index 69932fc..3035da5 100644
--- a/OpenSim/Framework/Communications/RestClient.cs
+++ b/OpenSim/Framework/Communications/RestClient.cs
@@ -293,8 +293,16 @@ namespace OpenSim.Framework.Communications
293 } 293 }
294 catch (WebException e) 294 catch (WebException e)
295 { 295 {
296 m_log.ErrorFormat("[ASSET] Error fetching asset from asset server"); 296 HttpWebResponse errorResponse = e.Response as HttpWebResponse;
297 m_log.Debug(e.ToString()); 297 if (null != errorResponse && HttpStatusCode.NotFound == errorResponse.StatusCode)
298 {
299 m_log.Warn("[ASSET] Asset not found (404)");
300 }
301 else
302 {
303 m_log.Error("[ASSET] Error fetching asset from asset server");
304 m_log.Debug(e.ToString());
305 }
298 306
299 return null; 307 return null;
300 } 308 }