Skip to content

Commit ffba359

Browse files
committed
refactor: [torrust#801] restore error handling to previous version
1 parent d130391 commit ffba359

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/databases/sqlite.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,7 @@ impl Database for Sqlite {
257257
.bind(limit)
258258
.fetch_all(&self.pool)
259259
.await
260-
.map_err(|e| {
261-
eprintln!("Database error: {e:?}");
262-
database::Error::Error
263-
})?;
260+
.map_err(|_| database::Error::Error)?;
264261

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

0 commit comments

Comments
 (0)