feat: implement repo fetching, add sentry
This commit is contained in:
@@ -28,7 +28,7 @@ struct ErrorResponse {
|
||||
impl ResponseError for Error {
|
||||
fn error_response(&self) -> actix_web::HttpResponse<actix_web::body::BoxBody> {
|
||||
match self {
|
||||
Error::AccessToken => HttpResponse::Unauthorized().finish(),
|
||||
Error::AccessToken => HttpResponse::BadRequest().finish(),
|
||||
Error::Unauthorized => HttpResponse::Unauthorized().finish(),
|
||||
Error::TokenExpired => HttpResponse::Unauthorized().json(ErrorResponse {
|
||||
error: "token expired".to_string(),
|
||||
|
||||
Reference in New Issue
Block a user