Construction logging (#11961)

This commit is contained in:
Leon Friedrich
2022-10-17 04:58:07 +13:00
committed by GitHub
parent 64c3efe527
commit 37b36b9a76

View File

@@ -268,7 +268,11 @@ namespace Content.Server.Construction
ContainerManagerComponent? containerManager = null)
{
if (!Resolve(uid, ref construction, ref metaData, ref transform))
return null;
{
// Failed resolve logs an error, but we want to actually log information about the failed construction
// graph. So lets let the UpdateInteractions() try-catch log that info for us.
throw new Exception("Missing construction components");
}
if (newEntity == metaData.EntityPrototype?.ID || !_prototypeManager.HasIndex<EntityPrototype>(newEntity))
return null;