refactor(events): properly print lua error
This commit is contained in:
parent
f367fce138
commit
d1a64ee3a4
@ -304,7 +304,7 @@ where
|
|||||||
let data = data.clone();
|
let data = data.clone();
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
if let Err(error) = callback.call_async::<()>(data).await {
|
if let Err(error) = callback.call_async::<()>(data).await {
|
||||||
error!("failed to call lua event listener {id} for {event_type}: {error:?}");
|
error!("failed to call lua event listener {id} for {event_type}: {error}");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user