|
|
|
@ -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; |
|
|
|
|