You've already forked authentication-service
mirror of
https://github.com/matrix-org/matrix-authentication-service.git
synced 2025-11-20 12:02:22 +03:00
Database refactoring
This commit is contained in:
@@ -23,9 +23,11 @@ pub struct FancyError {
|
||||
context: ErrorContext,
|
||||
}
|
||||
|
||||
impl<E: std::fmt::Display> From<E> for FancyError {
|
||||
impl<E: std::fmt::Debug + std::fmt::Display> From<E> for FancyError {
|
||||
fn from(err: E) -> Self {
|
||||
let context = ErrorContext::new().with_description(err.to_string());
|
||||
let context = ErrorContext::new()
|
||||
.with_description(format!("{err}"))
|
||||
.with_details(format!("{err:?}"));
|
||||
FancyError { context }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user