Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
imor committed Sep 6, 2024
1 parent 7163c30 commit bbf6840
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion api/src/routes/sources.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ impl SourceError {
impl ResponseError for SourceError {
fn status_code(&self) -> StatusCode {
match self {
SourceError::DatabaseError(_) | SourceError::SourcesDb(_) => StatusCode::INTERNAL_SERVER_ERROR,
SourceError::DatabaseError(_) | SourceError::SourcesDb(_) => {
StatusCode::INTERNAL_SERVER_ERROR
}
SourceError::SourceNotFound(_) => StatusCode::NOT_FOUND,
SourceError::TenantIdMissing | SourceError::TenantIdIllFormed => {
StatusCode::BAD_REQUEST
Expand Down

0 comments on commit bbf6840

Please sign in to comment.