No error swallowing

This commit is contained in:
durch
2025-07-25 11:43:05 +02:00
parent 1a07dbb09c
commit f11b2caeb1
3 changed files with 6 additions and 3 deletions
Generated
+1 -1
View File
@@ -6768,7 +6768,7 @@ dependencies = [
[[package]]
name = "nym-node-status-api"
version = "3.2.4"
version = "3.2.5"
dependencies = [
"ammonia",
"anyhow",
@@ -3,7 +3,7 @@
[package]
name = "nym-node-status-api"
version = "3.2.4"
version = "3.2.5"
authors.workspace = true
repository.workspace = true
homepage.workspace = true
@@ -505,7 +505,10 @@ impl HttpCache {
None => {
let new_node_stats = crate::db::queries::get_daily_stats(db)
.await
.unwrap_or_default()
.unwrap_or_else(|e| {
tracing::error!("Failed to get daily stats from database: {}", e);
vec![]
})
.into_iter()
.rev()
.collect::<Vec<_>>();