mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-12-27 03:42:39 +00:00
refactor(config): Add additional logging to debug config issues (#1390)
This commit is contained in:
parent
2cc2469cfe
commit
dbe6bdf031
@ -221,9 +221,16 @@ impl StarshipConfig {
|
|||||||
}
|
}
|
||||||
}?;
|
}?;
|
||||||
|
|
||||||
let config = toml::from_str(&toml_content).ok()?;
|
match toml::from_str(&toml_content) {
|
||||||
log::debug!("Config parsed: \n{:?}", &config);
|
Ok(parsed) => {
|
||||||
Some(config)
|
log::debug!("Config parsed: \n{:?}", &parsed);
|
||||||
|
Some(parsed)
|
||||||
|
}
|
||||||
|
Err(error) => {
|
||||||
|
log::debug!("Unable to parse the config file: {}", error);
|
||||||
|
None
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Get the subset of the table for a module by its name
|
/// Get the subset of the table for a module by its name
|
||||||
|
Loading…
Reference in New Issue
Block a user