From c467d7a4457363b0da4a41aa4869ab368ff452e3 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 23 Aug 2024 14:44:19 +0200 Subject: fix(config/from_filesystem): Just load an empty config, if there isn't one --- src/config/file_system.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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")?; -- cgit 1.4.1