Skip to content

Commit 03c1a32

Browse files
committed
chore: add err log
1 parent 6f1dea3 commit 03c1a32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

api/src/guilds/models.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ impl Guild {
145145
.set_request_items(Some(request_items))
146146
.send()
147147
.await
148-
.map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)
148+
.map_err(|e| {
149+
error!("Error fetching guilds from DynamoDB: {}", e);
150+
StatusCode::INTERNAL_SERVER_ERROR
151+
})
149152
.and_then(|resp| {
150153
let items = resp.responses.unwrap_or_default();
151154
if items.is_empty() {

0 commit comments

Comments
 (0)