diff options
Diffstat (limited to 'OpenSim/Services/Connectors/Asset')
-rw-r--r-- | OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs b/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs index 0903164..950cf47 100644 --- a/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs +++ b/OpenSim/Services/Connectors/Asset/AssetServiceConnector.cs | |||
@@ -195,8 +195,16 @@ namespace OpenSim.Services.Connectors | |||
195 | 195 | ||
196 | string uri = m_ServerURI + "/assets/"; | 196 | string uri = m_ServerURI + "/assets/"; |
197 | 197 | ||
198 | string newID = SynchronousRestObjectRequester. | 198 | string newID = string.Empty; |
199 | MakeRequest<AssetBase, string>("POST", uri, asset); | 199 | try |
200 | { | ||
201 | newID = SynchronousRestObjectRequester. | ||
202 | MakeRequest<AssetBase, string>("POST", uri, asset); | ||
203 | } | ||
204 | catch (Exception e) | ||
205 | { | ||
206 | m_log.WarnFormat("[ASSET CONNECTOR]: Unable to send asset {0} to asset server. Reason: {1}", asset.ID, e.Message); | ||
207 | } | ||
200 | 208 | ||
201 | if (newID != String.Empty) | 209 | if (newID != String.Empty) |
202 | { | 210 | { |