Fix incorrect EntityPath.Lookup exception message

wip/bindgen
copygirl 1 year ago
parent d2023961cc
commit c949257d1d
  1. 7
      src/gaemstone.ECS/EntityPath.cs

@ -150,10 +150,9 @@ public class EntityPath
var startStr = EntityRef.CreateOrNull(world, start)?.GetFullPath().ToString() ?? start.ToString();
throw new World.EntityNotFoundException(
(start == parent) ? $"Child entity of '{startStr}' at '{path}' not found"
: start.IsSome ? $"Entity at scope '{startStr}' at '{path}' not found"
: $"Entity at '{path}' not found"
);
start.IsNone ? $"Entity at '{path}' not found"
: (start == parent) ? $"Child entity of '{startStr}' at '{path}' not found"
: $"Entity at scope '{startStr}' at '{path}' not found");
}
return current;

Loading…
Cancel
Save