We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f1dea3 commit 03c1a32Copy full SHA for 03c1a32
api/src/guilds/models.rs
@@ -145,7 +145,10 @@ impl Guild {
145
.set_request_items(Some(request_items))
146
.send()
147
.await
148
- .map_err(|_| StatusCode::INTERNAL_SERVER_ERROR)
+ .map_err(|e| {
149
+ error!("Error fetching guilds from DynamoDB: {}", e);
150
+ StatusCode::INTERNAL_SERVER_ERROR
151
+ })
152
.and_then(|resp| {
153
let items = resp.responses.unwrap_or_default();
154
if items.is_empty() {
0 commit comments