From 449f86e5f60549dd49b81d6f5b09e1068b1f2392 Mon Sep 17 00:00:00 2001 From: Erin Allison Date: Thu, 30 Dec 2021 10:22:08 -0600 Subject: [PATCH] Fix issue where missing override file is improperly handled Signed-off-by: Erin Allison --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 250625c..772805a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -395,7 +395,7 @@ fn handle_profile_override(config: &mut VgpuConfig) -> bool { let config_overrides = match fs::read_to_string(&config_path) { Ok(data) => data, Err(e) => { - if e.kind() != ErrorKind::NotFound { + if e.kind() == ErrorKind::NotFound { error!("Config file '{}' not found", config_path.display()); return true; }