We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2f0938 commit 90cb809Copy full SHA for 90cb809
1 file changed
beacon-relay/src/config.rs
@@ -24,12 +24,13 @@ pub struct LogConfig {
24
}
25
26
impl Config {
27
- pub fn load() -> Result<Self, figment::Error> {
+ pub fn load() -> Result<Self, Box<figment::Error>> {
28
let config_path = Self::default_config_path();
29
Figment::new()
30
.merge(Toml::file(config_path))
31
.merge(Env::prefixed("APP_").split("__"))
32
.extract()
33
+ .map_err(Box::new)
34
35
36
pub fn listen_addr(&self) -> String {
0 commit comments