add FIXME note in TomlConfig::merge
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
8e6f50bb4d
commit
7dfb457745
1 changed files with 2 additions and 0 deletions
|
@ -812,6 +812,8 @@ impl Merge for TomlConfig {
|
||||||
exit!(2);
|
exit!(2);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
// FIXME: Similar to `Config::parse_inner`, allow passing a custom `get_toml` from the caller to
|
||||||
|
// improve testability since `Config::get_toml` does nothing when `cfg(test)` is enabled.
|
||||||
let included_toml = Config::get_toml(&include_path).unwrap_or_else(|e| {
|
let included_toml = Config::get_toml(&include_path).unwrap_or_else(|e| {
|
||||||
eprintln!("ERROR: Failed to parse '{}': {e}", include_path.display());
|
eprintln!("ERROR: Failed to parse '{}': {e}", include_path.display());
|
||||||
exit!(2);
|
exit!(2);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue