chore: add error logging to internal errors

This commit is contained in:
Zomatree
2025-10-11 22:22:11 +01:00
parent ae1d4dd264
commit 530264f747

View File

@@ -232,7 +232,9 @@ impl<T, E: std::fmt::Debug> ToRevoltError<T> for Result<T, E> {
let loc = Location::caller();
self
.map_err(|_| {
.map_err(|e| {
log::error!("{e:?}");
Error {
error_type: ErrorType::InternalError,
location: format!("{}:{}:{}", loc.file(), loc.line(), loc.column())