Skip to content

Commit

Permalink
refactor: [#801] restore error handling to previous version
Browse files Browse the repository at this point in the history
  • Loading branch information
mario-nt committed Feb 21, 2025
1 parent d130391 commit ffba359
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/databases/sqlite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -257,10 +257,7 @@ impl Database for Sqlite {
.bind(limit)
.fetch_all(&self.pool)
.await
.map_err(|e| {
eprintln!("Database error: {e:?}");
database::Error::Error
})?;
.map_err(|_| database::Error::Error)?;

Ok(UserProfilesResponse {
total: u32::try_from(count).expect("variable `count` is larger than u32"),
Expand Down

0 comments on commit ffba359

Please sign in to comment.