|
|
@ -149,7 +149,7 @@ public class EntityPath |
|
|
|
if (!throwOnNotFound) return Entity.None; |
|
|
|
if (!throwOnNotFound) return Entity.None; |
|
|
|
|
|
|
|
|
|
|
|
var startStr = EntityRef.CreateOrNull(world, start)?.GetFullPath().ToString() ?? start.ToString(); |
|
|
|
var startStr = EntityRef.CreateOrNull(world, start)?.GetFullPath().ToString() ?? start.ToString(); |
|
|
|
throw new World.EntityNotFoundException( |
|
|
|
throw new EntityNotFoundException( |
|
|
|
start.IsNone ? $"Entity at '{path}' not found" |
|
|
|
start.IsNone ? $"Entity at '{path}' not found" |
|
|
|
: (start == parent) ? $"Child entity of '{startStr}' at '{path}' not found" |
|
|
|
: (start == parent) ? $"Child entity of '{startStr}' at '{path}' not found" |
|
|
|
: $"Entity at scope '{startStr}' at '{path}' not found"); |
|
|
|
: $"Entity at scope '{startStr}' at '{path}' not found"); |
|
|
|