chore: add error logging to internal errors
This commit is contained in:
@@ -232,7 +232,9 @@ impl<T, E: std::fmt::Debug> ToRevoltError<T> for Result<T, E> {
|
|||||||
let loc = Location::caller();
|
let loc = Location::caller();
|
||||||
|
|
||||||
self
|
self
|
||||||
.map_err(|_| {
|
.map_err(|e| {
|
||||||
|
log::error!("{e:?}");
|
||||||
|
|
||||||
Error {
|
Error {
|
||||||
error_type: ErrorType::InternalError,
|
error_type: ErrorType::InternalError,
|
||||||
location: format!("{}:{}:{}", loc.file(), loc.line(), loc.column())
|
location: format!("{}:{}:{}", loc.file(), loc.line(), loc.column())
|
||||||
|
|||||||
Reference in New Issue
Block a user