mirror of
https://github.com/stoatchat/stoatchat.git
synced 2026-07-14 13:36:59 +00:00
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();
|
||||
|
||||
self
|
||||
.map_err(|_| {
|
||||
.map_err(|e| {
|
||||
log::error!("{e:?}");
|
||||
|
||||
Error {
|
||||
error_type: ErrorType::InternalError,
|
||||
location: format!("{}:{}:{}", loc.file(), loc.line(), loc.column())
|
||||
|
||||
Reference in New Issue
Block a user