diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 14:44:19 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-23 14:44:19 +0200 |
commit | c467d7a4457363b0da4a41aa4869ab368ff452e3 (patch) | |
tree | bf18bd4683539a994585ed361f7473c942e60e42 /src/config/file_system.rs | |
parent | chore(version): v1.1.0 (diff) | |
download | yt-c467d7a4457363b0da4a41aa4869ab368ff452e3.tar.gz yt-c467d7a4457363b0da4a41aa4869ab368ff452e3.zip |
fix(config/from_filesystem): Just load an empty config, if there isn't one
Diffstat (limited to 'src/config/file_system.rs')
-rw-r--r-- | src/config/file_system.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/file_system.rs b/src/config/file_system.rs index b89c1fe..396b854 100644 --- a/src/config/file_system.rs +++ b/src/config/file_system.rs @@ -83,7 +83,7 @@ impl Config { .map(|val| Ok(val)) .unwrap_or_else(|| -> Result<_> { paths::config_path() })?; - let config: Table = read_to_string(config_file_path)? + let config: Table = read_to_string(config_file_path).unwrap_or("".to_owned()) .parse() .context("Failed to parse the config file as toml")?; |