diff --git a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
index ceaadc2826..86cb38dad6 100644
--- a/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
+++ b/OpenSim/Region/Environment/Scenes/Scene.Inventory.cs
@@ -440,6 +440,12 @@ namespace OpenSim.Region.Environment.Scenes
}
}
+ ///
+ /// Rez a script into a prim's inventory
+ ///
+ ///
+ ///
+ ///
public void RezScript(IClientAPI remoteClient, LLUUID itemID, uint localID)
{
CachedUserInfo userInfo = CommsManager.UserProfileCacheService.GetUserDetails(remoteClient.AgentId);
@@ -482,7 +488,31 @@ namespace OpenSim.Region.Environment.Scenes
group.AddInventoryItem(remoteClient, localID, item, copyID);
group.GetProperites(remoteClient);
}
+ else
+ {
+ MainLog.Instance.Warn(
+ "PRIMINVENTORY",
+ "Could not rez item {0} into prim {1}"
+ + " because the prim could not be found in the region!",
+ item.inventoryName,
+ localID);
+ }
}
+ else
+ {
+ MainLog.Instance.Warn(
+ "PRIMINVENTORY",
+ "Could not rez item {0} into prim {1}"
+ + " because the item asset {2} could not be found!",
+ item.inventoryName,
+ localID,
+ item.assetID);
+ }
+ }
+ else
+ {
+ MainLog.Instance.Warn(
+ "PRIMINVENTORY", "Could not find script inventory item {0} to rez!", itemID);
}
}
}