You've already forked AstralRinth
forked from didirus/AstralRinth
Add details to Mural API errors (#4886)
This commit is contained in:
@@ -85,6 +85,7 @@ impl actix_web::ResponseError for AuthenticationError {
|
||||
HttpResponse::build(self.status_code()).json(ApiError {
|
||||
error: self.error_name(),
|
||||
description: self.to_string(),
|
||||
details: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -105,6 +105,7 @@ impl actix_web::ResponseError for OAuthError {
|
||||
HttpResponse::build(self.status_code()).json(ApiError {
|
||||
error: &self.error_type.error_name(),
|
||||
description: self.error_type.to_string(),
|
||||
details: None,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user