summaryrefslogtreecommitdiff
path: root/engine-ecs/src/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'engine-ecs/src/lib.rs')
-rw-r--r--engine-ecs/src/lib.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/engine-ecs/src/lib.rs b/engine-ecs/src/lib.rs
index 28b6b06..e9a28ab 100644
--- a/engine-ecs/src/lib.rs
+++ b/engine-ecs/src/lib.rs
@@ -19,7 +19,7 @@ use crate::component::{
use crate::entity::{Declaration as EntityDeclaration, Handle as EntityHandle, Name as EntityName};
use crate::error::{
err_handler_panic,
- ErrorHandler,
+ HandlerFn as ErrorHandlerFn,
Metadata as ErrorMetadata,
SourceKind as ErrorSourceKind,
};
@@ -87,7 +87,7 @@ pub struct World
data: WorldData,
stop: AtomicBool,
is_first_tick: AtomicBool,
- error_handler: ErrorHandler,
+ error_handler: ErrorHandlerFn,
}
impl World
@@ -109,7 +109,7 @@ impl World
world
}
- pub fn set_err_handler(&mut self, err_handler: ErrorHandler)
+ pub fn set_err_handler(&mut self, err_handler: ErrorHandlerFn)
{
self.error_handler = err_handler;
}
@@ -414,6 +414,7 @@ impl World
cold_path();
(self.error_handler)(
+ self,
err,
ErrorMetadata {
source_name: system.system.name(),
@@ -667,6 +668,7 @@ impl World
cold_path();
(self.error_handler)(
+ self,
err,
ErrorMetadata {
source_name: observer.name(),