summaryrefslogtreecommitdiff
path: root/engine-ecs/src/component
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2026-08-07 15:27:55 +0200
committerHampusM <hampus@hampusmat.com>2026-08-07 15:27:55 +0200
commit5d4921cc41af2f1cac790661fc0e55389ba1eaee (patch)
treee5312178c0c5495a41badcb1a557ce213e143f86 /engine-ecs/src/component
parent2ff2a58864fdfba5e050b129ff1b49b494289632 (diff)
feat(engine-ecs): improve various error log messages
Diffstat (limited to 'engine-ecs/src/component')
-rw-r--r--engine-ecs/src/component/storage.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/engine-ecs/src/component/storage.rs b/engine-ecs/src/component/storage.rs
index 4a1c035..b56d6ba 100644
--- a/engine-ecs/src/component/storage.rs
+++ b/engine-ecs/src/component/storage.rs
@@ -817,16 +817,16 @@ impl<const TERM_CAP: usize> ArchetypeRefIter<'_, '_, TERM_CAP>
#[derive(Debug, thiserror::Error)]
pub enum Error
{
- #[error("Entity with ID {0:?} does not exist")]
+ #[error("Entity {0} does not exist")]
EntityDoesNotExist(Uid),
- #[error("Entity with ID {entity:?} already has component with ID {component:?}")]
+ #[error("Entity {entity} already has component {component}")]
ComponentAlreadyInEntity
{
entity: Uid, component: Uid
},
- #[error("Entity with ID {entity:?} does not have component with ID {component:?}")]
+ #[error("Entity {entity} does not have component {component}")]
ComponentNotFoundInEntity
{
entity: Uid, component: Uid
@@ -834,7 +834,7 @@ pub enum Error
}
#[derive(Debug, thiserror::Error)]
-#[error("Entity with already exists")]
+#[error("Entity already exists")]
pub struct EntityAlreadyExistsError;
#[derive(Debug)]