Compare commits

..
Author SHA1 Message Date
Zomatree 530264f747 chore: add error logging to internal errors 2025-10-11 22:22:11 +01:00
+3 -1
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())