refactor(events): properly print lua error

This commit is contained in:
2025-03-18 17:07:09 -04:00
parent f367fce138
commit d1a64ee3a4

View File

@@ -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}");
} }
}); });
} }