Add context to iteration errors

This commit is contained in:
mdecimus
2024-10-17 17:30:45 +02:00
parent a1c5be0e11
commit 9e78aaa751
11 changed files with 23 additions and 12 deletions

View File

@@ -168,6 +168,7 @@ impl Server {
},
)
.await
.caused_by(trc::location!())
.map(|_| total)
}

View File

@@ -16,6 +16,7 @@ use store::{
write::{BatchBuilder, ValueClass},
Deserialize, IterateParams, Store, ValueKey,
};
use trc::AddContext;
use utils::{
config::{Config, ConfigKey},
glob::GlobPattern,
@@ -166,7 +167,8 @@ impl ConfigManager {
Ok(true)
},
)
.await?;
.await
.caused_by(trc::location!())?;
Ok(results)
}