diff --git a/src/nodes/data.rs b/src/nodes/data.rs index c735cf4..c8af84e 100644 --- a/src/nodes/data.rs +++ b/src/nodes/data.rs @@ -14,7 +14,7 @@ impl PulseSender { pub fn add_to(node: &RcCell) -> Result<()> { ensure!( node.borrow().spatial.is_some(), - "Node does not have a spatial attached!" + "Internal: Node does not have a spatial attached!" ); let sender = PulseSender {}; diff --git a/src/nodes/field.rs b/src/nodes/field.rs index 749901d..d6a9989 100644 --- a/src/nodes/field.rs +++ b/src/nodes/field.rs @@ -157,11 +157,11 @@ impl BoxField { pub fn add_to(node: &RcCell, size: Vec3) -> Result<()> { ensure!( node.borrow().spatial.is_some(), - "Node does not have a spatial attached!" + "Internal: Node does not have a spatial attached!" ); ensure!( node.borrow().field.is_none(), - "Node already has a field attached!" + "Internal: Node already has a field attached!" ); let box_field = BoxField { space: node.borrow().spatial.as_ref().unwrap().clone(), @@ -218,11 +218,11 @@ impl CylinderField { pub fn add_to(node: &RcCell, length: f32, radius: f32) -> Result<()> { ensure!( node.borrow().spatial.is_some(), - "Node does not have a spatial attached!" + "Internal: Node does not have a spatial attached!" ); ensure!( node.borrow().field.is_none(), - "Node already has a field attached!" + "Internal: Node already has a field attached!" ); let cylinder_field = CylinderField { space: node.borrow().spatial.as_ref().unwrap().clone(), @@ -285,11 +285,11 @@ impl SphereField { pub fn add_to(node: &RcCell, radius: f32) -> Result<()> { ensure!( node.borrow().spatial.is_some(), - "Node does not have a spatial attached!" + "Internal: Node does not have a spatial attached!" ); ensure!( node.borrow().field.is_none(), - "Node already has a field attached!" + "Internal: Node already has a field attached!" ); let sphere_field = SphereField { space: node.borrow().spatial.as_ref().unwrap().clone(), diff --git a/src/nodes/spatial.rs b/src/nodes/spatial.rs index 3893d83..938749f 100644 --- a/src/nodes/spatial.rs +++ b/src/nodes/spatial.rs @@ -23,7 +23,7 @@ impl Spatial { ) -> Result> { ensure!( node.borrow_mut().spatial.is_none(), - "Node already has a Spatial aspect!" + "Internal: Node already has a Spatial aspect!" ); let spatial = Spatial { // node: node.downgrade(),