Add context to iteration errors
This commit is contained in:
@@ -168,6 +168,7 @@ impl Server {
|
||||
},
|
||||
)
|
||||
.await
|
||||
.caused_by(trc::location!())
|
||||
.map(|_| total)
|
||||
}
|
||||
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user