diff options
Diffstat (limited to 'alacritty/src/config/mod.rs')
-rw-r--r-- | alacritty/src/config/mod.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/alacritty/src/config/mod.rs b/alacritty/src/config/mod.rs index 9aa2a74c..d24e8519 100644 --- a/alacritty/src/config/mod.rs +++ b/alacritty/src/config/mod.rs @@ -222,6 +222,12 @@ fn load_imports(config: &Value, config_paths: &mut Vec<PathBuf>, recursion_limit }, }; + if !path.exists() { + info!(target: LOG_TARGET_CONFIG, "Skipping importing config; not found:"); + info!(target: LOG_TARGET_CONFIG, " {:?}", path.display()); + continue; + } + match parse_config(&path, config_paths, recursion_limit - 1) { Ok(config) => merged = serde_utils::merge(merged, config), Err(err) => { |